YEW.rs default project
This commit is contained in:
parent
c5df541676
commit
2dd9558f74
2 changed files with 12 additions and 0 deletions
2
src/components/mod.rs
Normal file
2
src/components/mod.rs
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
mod test;
|
||||||
|
pub use test::Test;
|
10
src/components/test.rs
Normal file
10
src/components/test.rs
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
use yew::{function_component, Html, html};
|
||||||
|
|
||||||
|
#[function_component]
|
||||||
|
pub fn Test() -> Html {
|
||||||
|
html! {
|
||||||
|
<div>
|
||||||
|
<h1>{"Test component"}</h1>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue