Remove default home page

This commit is contained in:
Ethan Girouard 2024-01-01 16:32:05 -05:00
parent 18dde3165e
commit e5953c487f
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146

View File

@ -30,14 +30,7 @@ pub fn App() -> impl IntoView {
/// Renders the home page of your application.
#[component]
fn HomePage() -> impl IntoView {
// Creates a reactive value to update the button
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>
}
view! {}
}
/// 404 - Not Found