YEW.rs default project

This commit is contained in:
Florian RICHER 2023-03-08 20:31:36 +01:00
parent c5df541676
commit 2dd9558f74
2 changed files with 12 additions and 0 deletions

2
src/components/mod.rs Normal file
View file

@ -0,0 +1,2 @@
mod test;
pub use test::Test;

10
src/components/test.rs Normal file
View file

@ -0,0 +1,10 @@
use yew::{function_component, Html, html};
#[function_component]
pub fn Test() -> Html {
html! {
<div>
<h1>{"Test component"}</h1>
</div>
}
}