@@ -36,7 +36,7 @@ fn HomePage(cx: Scope) -> impl IntoView {
|
||||
let on_click = move |_| set_count.update(|count| *count += 1);
|
||||
|
||||
view! { cx,
|
||||
<h1>"Welcome to Leptos!"</h1>
|
||||
<h1 class="text-xl text-red-50">"Welcome to Leptos!"</h1>
|
||||
<button on:click=on_click>"Click Me: " {count}</button>
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user