From 2dd9558f74529a8b0eb35ba2de8c66da701e7fb4 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Wed, 8 Mar 2023 20:31:36 +0100 Subject: [PATCH] YEW.rs default project --- src/components/mod.rs | 2 ++ src/components/test.rs | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 src/components/mod.rs create mode 100644 src/components/test.rs diff --git a/src/components/mod.rs b/src/components/mod.rs new file mode 100644 index 0000000..12081b1 --- /dev/null +++ b/src/components/mod.rs @@ -0,0 +1,2 @@ +mod test; +pub use test::Test; \ No newline at end of file diff --git a/src/components/test.rs b/src/components/test.rs new file mode 100644 index 0000000..5d26414 --- /dev/null +++ b/src/components/test.rs @@ -0,0 +1,10 @@ +use yew::{function_component, Html, html}; + +#[function_component] +pub fn Test() -> Html { + html! { +
+

{"Test component"}

+
+ } +} \ No newline at end of file