Feat: view -> render
This commit is contained in:
1 parent
10a236fc65
commit
c8bb392cad
24 files changed
+204
-48
No files matched your search
@@ -44,7 +44,7 @@ mod tests {
|
||||
|
||||
static TestComponent: FC<()> = |ctx, props| {
|
||||
//
|
||||
ctx.view(html! {
|
||||
ctx.render(html! {
|
||||
<div>
|
||||
</div>
|
||||
})
|
||||
@@ -52,7 +52,7 @@ mod tests {
|
||||
|
||||
static TestComponent2: FC<()> = |ctx, props| {
|
||||
//
|
||||
ctx.view(|bump: &Bump| VNode::text("blah"))
|
||||
ctx.render(|bump: &Bump| VNode::text("blah"))
|
||||
};
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user