Feat: add css example

This commit is contained in:
Jonathan Kelley committed 2021-02-23 15:08:23 -05:00
1 parent 7a4594e237
commit edf09c1892
5 files changed
+57 -40

No files matched your search

+3 -1
View File
@@ -52,7 +52,7 @@ impl<'a> Context<'a> {
fn use_context<'b, I, O: 'b>(&self, f: fn(&'b I) -> O) -> ContextGuard2<O> {
todo!()
}
fn add_listener(&self, f: impl Fn(()) + 'static) {
fn add_listener(&self, f: impl Fn(()) + 'a) {
todo!()
}
@@ -78,6 +78,8 @@ fn t<'a>(ctx: Context<'a>) {
ctx.add_listener(move |_| {
// let val = value.get().as_str();
let val2 = r2.as_bytes();
println!("v2 is {}", r2);
// println!("refed is {}", refed);
});
// let refed = value.deref();