Feat: major overhaul, wire up event system
This commit is contained in:
1 parent
f47651b32a
commit
8295ac4b3d
20 files changed
+1418
-188
No files matched your search
@@ -12,12 +12,14 @@ static Header: FC<()> = |ctx, props| {
|
||||
|
||||
let handler1 = move || println!("Value is {}", inner.current());
|
||||
|
||||
ctx.view(html! {
|
||||
<div>
|
||||
<h1> "This is the header bar" </h1>
|
||||
<h1> "Idnt it awesome" </h1>
|
||||
<button onclick={move |_| handler1()}> "Click me" </button>
|
||||
</div>
|
||||
ctx.view(|bump| {
|
||||
builder::div(bump)
|
||||
.child(VNode::Component(VComponent::new(
|
||||
Bottom,
|
||||
//
|
||||
(),
|
||||
)))
|
||||
.finish()
|
||||
})
|
||||
};
|
||||
|
||||
@@ -29,12 +31,3 @@ static Bottom: FC<()> = |ctx, props| {
|
||||
</div>
|
||||
})
|
||||
};
|
||||
|
||||
static Example: FC<()> = |ctx, props| {
|
||||
ctx.view(html! {
|
||||
<div>
|
||||
<h1> "BROSKI!" </h1>
|
||||
<h1> "DRO!" </h1>
|
||||
</div>
|
||||
})
|
||||
};
|
||||
Reference in new issue
Block a user