Created
April 17, 2023 14:35
-
-
Save Enigo/76b94c6d07fcd392c7e571bc37c9188c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use log::info; | |
use yew::prelude::*; | |
#[function_component(App)] | |
fn app() -> Html { | |
html! { | |
<p class="text-white">{ "Rendered" }</p> | |
} | |
} | |
fn main() { | |
wasm_logger::init(wasm_logger::Config::default()); | |
info!("Starting app..."); | |
yew::Renderer::<App>::new().render(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment