Attribute Macro sycamore_macro::component[][src]

#[component]
Expand description

A macro for creating components from functions.

Add this attribute to a fn to create a component from that function.

To learn more about components, see the chapter on components in the Sycamore Book.