Feat: update readme and examples

This commit is contained in:
Jonathan Kelley committed 2021-03-01 00:16:48 -05:00
1 parent c8bb392cad
commit ffaf687896
12 files changed
+608 -63

No files matched your search

+1 -5
View File
@@ -11,11 +11,7 @@ This macro allows allows a classic struct definition to be embedded directly int
```rust
// Inlines and destructure props *automatically*
#[functional_component]
fn Example(ctx: &mut Context<{
name: String
pending: bool
count: i32
}>) -> VNode {
fn Example(ctx: Context, name: &str, pending: bool, count: i32 ) -> DomTree {
html! {
<div>
<p> "Hello, {name}!" </p>