pub fn use_eval<S: std::string::ToString>(cx: &ScopeState) -> &dyn Fn(S) {
    let desktop = use_window(cx).clone();

    cx.use_hook(|_| move |script| desktop.eval(script))
}
/// Get a closure that executes any JavaScript in the WebView context.
Get a closure that executes any JavaScript in the WebView context.
Get a closure that executes any JavaScript in the WebView context .
pub fn use_eval<S: std::string::ToString>(cx: &ScopeState) -> &dyn Fn(S) {
    let desktop = use_window(cx).clone();
    cx.use_hook(|_| move |script| desktop.eval(script))
}
pub fn use_eval < S : std :: string :: ToString > ( cx : & ScopeState ) -> & dyn Fn ( S ) { let desktop = use_window ( cx ) . clone ( ) ; cx . use_hook ( | _ | move | script | desktop . eval ( script ) ) }
Get a closure that executes any JavaScript in the WebView context.
Get a closure that executes any JavaScript in the WebView context .
cx
&ScopeState
cx
&ScopeState