WIP: remove FC
This commit is contained in:
1 parent
3740f81383
commit
92d9521a73
24 files changed
+801
-451
No files matched your search
@@ -25,15 +25,20 @@ impl DebugRenderer {
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::prelude::*;
|
||||
use crate::scope::FC;
|
||||
|
||||
#[test]
|
||||
fn ensure_creation() -> Result<(), ()> {
|
||||
let mut dom = VirtualDom::new(|ctx, props| {
|
||||
//
|
||||
ctx.render(html! { <div>"hello world" </div> })
|
||||
});
|
||||
#[derive(PartialEq)]
|
||||
struct Creation {}
|
||||
impl FC for Creation {
|
||||
fn render(ctx: Context, props: &Self) -> DomTree {
|
||||
ctx.render(html! { <div>"hello world" </div> })
|
||||
}
|
||||
}
|
||||
|
||||
let mut dom = VirtualDom::new_with_props(Creation {});
|
||||
|
||||
// dom.progress()?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user