Add tailwind and daisyui

This commit is contained in:
2026-03-30 21:40:28 -04:00
parent a21c8f5b70
commit a068db1595
12 changed files with 1147 additions and 902 deletions

View File

@@ -2,20 +2,8 @@ use yew::prelude::*;
#[component]
fn App() -> Html {
let counter = use_state(|| 0);
let onclick = {
let counter = counter.clone();
move |_| {
let value = *counter + 1;
counter.set(value);
}
};
html! {
<div>
<button {onclick}>{ "+1" }</button>
<p>{ *counter }</p>
</div>
<button class="btn">{ "Hello daisyUI" }</button>
}
}