27 lines
461 B
Rust
27 lines
461 B
Rust
use yew::prelude::*;
|
|
|
|
use crate::home::Home;
|
|
|
|
pub struct App {}
|
|
|
|
impl Component for App {
|
|
type Message = ();
|
|
type Properties = ();
|
|
|
|
fn create(_: Self::Properties, _: ComponentLink<Self>) -> Self {
|
|
Self {}
|
|
}
|
|
|
|
fn update(&mut self, _: Self::Message) -> ShouldRender {
|
|
true
|
|
}
|
|
|
|
fn change(&mut self, _: Self::Properties) -> ShouldRender {
|
|
false
|
|
}
|
|
|
|
fn view(&self) -> Html {
|
|
html! { <Home/> }
|
|
}
|
|
}
|