Now functioning frontend

Changed some things to make trunk work
This commit is contained in:
2026-04-28 06:36:01 +02:00
parent 76b4ccf943
commit ce86d8bc8f
4 changed files with 14 additions and 9 deletions

View File

@@ -1,8 +1,7 @@
use serde::{Deserialize, Serialize};
use yew::prelude::*;
#[component]
fn App() -> Html {
#[function_component]
pub fn App() -> Html {
let counter = use_state(|| 0);
let onclick = {
let counter = counter.clone();
@@ -19,7 +18,3 @@ fn App() -> Html {
</div>
}
}
fn main() {
yew::Renderer::<App>::new().render();
}