Update README
This commit is contained in:
parent
98e3f5a155
commit
0e437cac68
|
@ -12,7 +12,7 @@
|
|||
use leptos::*;
|
||||
|
||||
#[component]
|
||||
pub fn SimpleCounter(cx: Scope, initial_value: i32) -> Element {
|
||||
pub fn SimpleCounter(cx: Scope, initial_value: i32) -> impl IntoView {
|
||||
// create a reactive signal with the initial value
|
||||
let (value, set_value) = create_signal(cx, initial_value);
|
||||
|
||||
|
|
Loading…
Reference in New Issue