sycamore::prelude

Attribute Macro cfg_not_ssr

#[cfg_not_ssr]
Expand description

A macro for feature gating code that should only be run on the web.

By default, the target is used to determine the rendering mode. However, --cfg sycamore_force_ssr can be used to override this behavior.

ยงExample

#[cfg_not_ssr]
fn browser_only() {}

See also cfg_ssr.