Skip to main content

component

Attribute Macro component 

Source
#[component]
Expand description

Turns fn Name(props: &NameProps, hooks: &mut Hooks) -> Element { .. } (or the props-less form fn Name(hooks: &mut Hooks) -> Element) into a unit struct implementing ntui::Component.