Function dioxus_html::prelude::use_eval

source ·
pub fn use_eval(
    cx: &ScopeState
) -> &Rc<dyn Fn(&str) -> Result<UseEval, EvalError>>
Expand description

Get a struct that can execute any JavaScript.

Safety

Please be very careful with this function. A script with too many dynamic parts is practically asking for a hacker to find an XSS vulnerability in it. This applies especially to web targets, where the JavaScript context has access to most, if not all of your application data.