mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
Transition counter
example to use View
This commit is contained in:
parent
eb40f9f7c7
commit
b8559d4335
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
use leptos::*;
|
||||
|
||||
pub fn simple_counter(cx: Scope) -> web_sys::Element {
|
||||
pub fn simple_counter(cx: Scope) -> View {
|
||||
let (value, set_value) = create_signal(cx, 0);
|
||||
|
||||
view! { cx,
|
||||
|
|
Loading…
Reference in a new issue