#[component]Expand description
The component attribute macro for marking component functions.
Only functions annotated with #[component] are treated as components
in the html! macro. All other identifier tags are treated as native
HTML elements (with Tag::Element).
The html! macro scans the project source to find #[component]-annotated
functions at compile time, so this attribute must be present for the
html! macro to generate a component function call.
§Arguments
TokenStream- The attribute arguments (unused).TokenStream- The item being annotated (passed through unchanged).
§Returns
TokenStream- The original item unchanged.