Remove default home page
This commit is contained in:
parent
18dde3165e
commit
e5953c487f
@ -30,14 +30,7 @@ pub fn App() -> impl IntoView {
|
|||||||
/// Renders the home page of your application.
|
/// Renders the home page of your application.
|
||||||
#[component]
|
#[component]
|
||||||
fn HomePage() -> impl IntoView {
|
fn HomePage() -> impl IntoView {
|
||||||
// Creates a reactive value to update the button
|
view! {}
|
||||||
let (count, set_count) = create_signal(0);
|
|
||||||
let on_click = move |_| set_count.update(|count| *count += 1);
|
|
||||||
|
|
||||||
view! {
|
|
||||||
<h1>"Welcome to Leptos!"</h1>
|
|
||||||
<button on:click=on_click>"Click Me: " {count}</button>
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 404 - Not Found
|
/// 404 - Not Found
|
||||||
|
Loading…
x
Reference in New Issue
Block a user