Derive Macro ruukh_codegen::Lifecycle
source · #[derive(Lifecycle)]
Expand description
A convenient auto derive for Lifecycle
trait. It could be simply written
as impl Lifecycle for MyComponent {}
instead, but why not save some chars.
You may use it like:
Example
ⓘ
#[derive(Lifecycle)]
struct Button;