Starting out frontend
This commit is contained in:
parent
5b8d64ba8f
commit
64c76b9341
4 changed files with 15 additions and 3 deletions
|
@ -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:/>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue