//! An example where the dioxus vdom is running in a native thread, interacting with webview //! Content is passed from the native thread into the webview use dioxus_core::prelude::*; fn main() { dioxus_webview::launch( // Customize the webview |builder| { builder .title("Test Dioxus App") .size(320, 480) .resizable(true) .debug(true) }, // Props (), // Draw the root component Example, ) .expect("Webview finished"); } static Example: FC<()> = |ctx, _props| { ctx.view(html! {
// Title
"Jon's awesome site!!11"
// Subtext / description
"He worked so hard on it :)"
// Main number
"1337"
// Try another
}) };