Feat: view -> render
This commit is contained in:
1 parent
10a236fc65
commit
c8bb392cad
24 files changed
+204
-48
No files matched your search
@@ -9,7 +9,7 @@ struct MyProps {
|
||||
}
|
||||
|
||||
fn Example(ctx: Context<MyProps>) -> VNode {
|
||||
ctx.view(html! {
|
||||
ctx.render(html! {
|
||||
<div> "Hello {ctx.props().name}!" </div>
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user