Feat: WIP ctx

This commit is contained in:
Jonathan Kelley committed 2021-02-20 21:59:16 -05:00
1 parent b3e6886351
commit 7a6aabe4f3
18 files changed
+430 -99

No files matched your search

+8 -6
View File
@@ -16,16 +16,18 @@ fn main() -> Result<(), ()> {
Ok(())
}
#[derive(Debug)]
struct Props {
name: String,
}
impl Properties for Props {
fn call(&self, ptr: *const ()) {}
// fn new() -> Self {
// todo!()
// }
}
// impl Properties for Props {
// fn call(&self, ptr: *const ()) {}
// // fn new() -> Self {
// // todo!()
// // }
// }
static Example: FC<Props> = |ctx, props| {
ctx.view(html! {