Rename the Root component to App
This commit is contained in:
parent
b96ad9ecbd
commit
f119d1ac38
2 changed files with 4 additions and 4 deletions
|
@ -1,13 +1,13 @@
|
|||
use yew::prelude::*;
|
||||
|
||||
pub struct Root;
|
||||
pub struct App;
|
||||
|
||||
impl Component for Root {
|
||||
impl Component for App {
|
||||
type Message = ();
|
||||
type Properties = ();
|
||||
|
||||
fn create(_props: Self::Properties, _complink: ComponentLink<Self>) -> Self {
|
||||
Root
|
||||
App
|
||||
}
|
||||
|
||||
fn update(&mut self, _msg: Self::Message) -> ShouldRender {
|
||||
|
|
|
@ -6,5 +6,5 @@ use wasm_bindgen::prelude::*;
|
|||
|
||||
#[wasm_bindgen(start)]
|
||||
pub fn run_app() {
|
||||
yew::start_app::<components::Root>();
|
||||
yew::start_app::<components::App>();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue