29 lines
503 B
Rust
29 lines
503 B
Rust
|
use yew::prelude::*;
|
||
|
|
||
|
pub struct App {}
|
||
|
|
||
|
pub enum Msg {}
|
||
|
|
||
|
impl Component for App {
|
||
|
type Message = Msg;
|
||
|
type Properties = ();
|
||
|
|
||
|
fn create(_: Self::Properties, _: ComponentLink<Self>) -> Self {
|
||
|
App {}
|
||
|
}
|
||
|
|
||
|
fn update(&mut self, _msg: Self::Message) -> ShouldRender {
|
||
|
true
|
||
|
}
|
||
|
|
||
|
fn change(&mut self, _: Self::Properties) -> ShouldRender {
|
||
|
false
|
||
|
}
|
||
|
|
||
|
fn view(&self) -> Html {
|
||
|
html! {
|
||
|
<p>{ "Hello world!\n\n\n\n" }</p>
|
||
|
}
|
||
|
}
|
||
|
}
|