Feat: overall API updates

This commit is contained in:
Jonathan Kelley committed 2021-02-12 00:29:46 -05:00
1 parent 125f5426a4
commit f47651b32a
16 files changed
+234 -177

No files matched your search

+9 -4
View File
@@ -20,15 +20,20 @@ struct Props {
name: String,
}
impl Properties for Props {
fn new() -> Self {
todo!()
}
fn call(&self, ptr: *const ()) {}
// fn new() -> Self {
// todo!()
// }
}
static Example: FC<Props> = |ctx, props| {
ctx.view(html! {
<div>
<h1> </h1>
<h1> "hello world!" </h1>
<h1> "hello world!" </h1>
<h1> "hello world!" </h1>
<h1> "hello world!" </h1>
</div>
})
};