Skip to content

Instantly share code, notes, and snippets.

@Enigo
Created April 17, 2023 14:35
Show Gist options
  • Save Enigo/76b94c6d07fcd392c7e571bc37c9188c to your computer and use it in GitHub Desktop.
Save Enigo/76b94c6d07fcd392c7e571bc37c9188c to your computer and use it in GitHub Desktop.
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