Feat: overall API updates
This commit is contained in:
1 parent
125f5426a4
commit
f47651b32a
16 files changed
+234
-177
No files matched your search
@@ -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>
|
||||
})
|
||||
};
|
||||
Reference in new issue
Block a user