Feat: push new component API and context API
This commit is contained in:
1 parent
8329268d39
commit
125f5426a4
14 files changed
+432
-264
No files matched your search
@@ -28,7 +28,11 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn ensure_creation() -> Result<(), ()> {
|
||||
let mut dom = VirtualDom::new(|ctx| ctx.view(html! { <div>"hello world" </div> }));
|
||||
let mut dom = VirtualDom::new(|ctx, props| {
|
||||
//
|
||||
ctx.view(html! { <div>"hello world" </div> })
|
||||
});
|
||||
|
||||
dom.progress()?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user