Function leptos_dom::is_dev

source ยท
pub const fn is_dev() -> bool
Expand description

Returns true if debug_assertions are enabled.

if is_dev() {
    // log something or whatever
}