sycamore::web

Macro console_error

macro_rules! console_error {
    ($($arg:tt)*) => { ... };
}
Expand description

Prints an error message to the JavaScript console if on wasm32. Otherwise logs it to stderr.

Note: this does not work properly for server-side WASM since it will mistakenly try to log to the JS console.