Compose
Last updated
Last updated
In this example i used checkbox component
Warning: Here we have some points to consider To avoid unnecessary recompositions at your component. We recommend use the @Immutable and @Stable annotations in your properties. More about it below
@immutable: This guarantee the composition optimization based on the assumption that values read from the type will not change.
@stable: this is used to communicate some guarantees to the compose compiler about how a certain type or function will behave and keep the compose compiler notified about changes
:memo: Note: Your composable component must have three properties.
componentProperties: The mapped properties from json
modifier: Default for composable componets
behaviour: This make reference to the component's behaviour, for example: onclick -> for buttons, onchange -> for checkbox etc...
:memo: Note: This Builder must extend CraftBuilder Class and override craft method.