Update README.md

This commit is contained in:
Greg Johnston 2022-10-13 07:28:22 -04:00 committed by GitHub
parent 66134309f3
commit 84a40d472b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ pub fn SimpleCounter(cx: Scope, initial_value: i32) -> Element {
// Easy to use with Trunk (trunkrs.dev) or with a simple wasm-bindgen setup
pub fn main() {
mount_to_body(|cx| view! { cx, <SimpleCounter initial_value=3> })
mount_to_body(|cx| view! { cx, <SimpleCounter initial_value=3 /> })
}
```