Crate leptos_macro

source ·

Macros

The view macro uses RSX (like JSX, but Rust!) It follows most of the same rules as HTML, with the following differences:

Attribute Macros

Annotates a function so that it can be used with your template as a Leptos <Component/>.
Declares that a function is a server function. This means that its body will only run on the server, i.e., when the ssr feature is enabled.

Derive Macros