Starting out frontend

This commit is contained in:
Marko Korhonen 2020-04-17 18:08:18 +03:00
parent 5b8d64ba8f
commit 64c76b9341
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
4 changed files with 15 additions and 3 deletions

View file

@ -1,3 +1,6 @@
mod component;
use component::login::LoginComponent;
use yew::prelude::*;
struct App {
@ -34,10 +37,8 @@ impl Component for App {
}
fn view(&self) -> Html {
let button_text = if self.clicked { "Clicked!" } else { "Click me" };
html! {
<button onclick=&self.onclick>{ button_text }</button>
<LoginComponent:/>
}
}
}