#[component]Expand description
Attribute macro splitting an impl MyComponent { fn render(&self) -> NodeId { ... } ... } block into clean impl Lifecycle and impl Component blocks.
§Arguments
TokenStream- Optionalretention = Freeze | Destroy | Aliveoptions.TokenStream- Targetimplblock tokens.
§Returns
TokenStream- ExpandedLifecycle,Component, and optional inherent helperimplblocks.