feat: somewhat working with rc and weak
This commit is contained in:
1 parent
ec801eab16
commit
d4f1ceaffb
10 files changed
+170
-137
No files matched your search
@@ -12,12 +12,12 @@ static Header: FC<()> = |ctx, props| {
|
||||
|
||||
let handler1 = move || println!("Value is {}", inner.current());
|
||||
|
||||
ctx.render(|bump| {
|
||||
builder::ElementBuilder::new(bump, "div")
|
||||
ctx.render(|c| {
|
||||
builder::ElementBuilder::new(c, "div")
|
||||
.child(VNode::Component(VComponent::new(
|
||||
Bottom,
|
||||
//
|
||||
&mut (),
|
||||
c.bump.alloc(()),
|
||||
)))
|
||||
.finish()
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user