sycamore::web

Macro console_log

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

Log a message to the JavaScript console if on wasm32. Otherwise logs it to stdout.

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