pub fn launch_with_props<T, F>(
    root_component: Component<T>,
    root_properties: T,
    configuration_builder: F,
) where
    T: Send + 'static,
    F: FnOnce(WebConfig) -> WebConfig,
{
    let config = configuration_builder(WebConfig::default());
    wasm_bindgen_futures::spawn_local(run_with_props(root_component, root_properties, config));
}
/// Launches the VirtualDOM from the specified component function and props.
///
/// This method will block the thread with `spawn_local`
///
/// # Example
///
/// ```rust, ignore
/// fn main() {
///     dioxus_web::launch_with_props(App, RootProps { name: String::from("joe") });
/// }
///
/// #[derive(ParitalEq, Props)]
/// struct RootProps {
///     name: String
/// }
///
/// static App: Component<RootProps> = |cx| {
///     rsx!(cx, div {"hello {cx.props.name}"})
/// }
/// ```
Launches the VirtualDOM from the specified component function and props.
This method will block the thread with `spawn_local`
Launches the VirtualDOM from the specified component function and props . This method will block the thread with ` spawn_local `
pub fn launch_with_props<T, F>(
    root_component: Component<T>,
    root_properties: T,
    configuration_builder: F,
) where
    T: Send + 'static,
    F: FnOnce(WebConfig) -> WebConfig,
{
    let config = configuration_builder(WebConfig::default());
    wasm_bindgen_futures::spawn_local(run_with_props(root_component, root_properties, config));
}
pub fn launch_with_props < T , F > ( root_component : Component < T > , root_properties : T , configuration_builder : F , ) where T : Send + ' static , F : FnOnce ( WebConfig ) -> WebConfig , { let config = configuration_builder ( WebConfig :: default ( ) ) ; wasm_bindgen_futures :: spawn_local ( run_with_props ( root_component , root_properties , config ) ) ; }
Launches the VirtualDOM from the specified component function and props.
Launches the VirtualDOM from the specified component function and props .
root_component
Component<T>
root_properties
T
configuration_builder
F
example
```rust, ignore
fn main() {
dioxus_web::launch_with_props(App, RootProps { name: String::from("joe") });
}
` ` ` rust ignore fn main () { dioxus_web :: launch_with_props ( App RootProps { name : String :: from ( " joe " ) } ) ; }
[derive(paritaleq, props)]
struct RootProps {
name: String
}

static App: Component = |cx| {
rsx!(cx, div {"hello {cx.props.name}"})
}
```
struct RootProps { name : String } static App : Component = |cx| { rsx! ( cx div { " hello { cx . props . name } " } ) } ` ` `