Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matthunz committed Sep 24, 2023
1 parent 710f1d0 commit c818415
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ but you can bring your own state management tools or build your own framework us
### Hello World
```rust
fn main() {
let mut tree = Context::default();
let mut cx = Context::default();
let root = Element::new()
.align_items(AlignItems::Center)
.justify_content(JustifyContent::Center)
.child(tree.insert("Hello World!"))
.build(&mut tree);
.child(cx.insert("Hello World!"))
.build(&mut cx);

viewbuilder::run(tree, root)
}
Expand Down

0 comments on commit c818415

Please sign in to comment.