sycamore::web

Macro console_warn

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

Log a warning 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.