mirror of
https://github.com/adoyle0/thaw.git
synced 2025-03-13 14:09:49 -04:00
19 lines
443 B
Rust
19 lines
443 B
Rust
use crate::pages::*;
|
|
use leptos::*;
|
|
use leptos_router::*;
|
|
|
|
#[component]
|
|
pub fn App(cx: Scope) -> impl IntoView {
|
|
view! { cx,
|
|
<Router>
|
|
<Routes>
|
|
<Route path="/" view=move |cx| view! {cx,
|
|
<Home />
|
|
} />
|
|
<Route path="/slider" view=move |cx| view! {cx,
|
|
<SliderPage />
|
|
} />
|
|
</Routes>
|
|
</Router>
|
|
}
|
|
}
|