Composing State
Instead of specifying State
properties you can compose them as sibling nodes.
Allowed components are:
Component | Maps To Prop | Gets Value From Prop | Default value when present |
---|---|---|---|
Id | id | children | |
Render | render | children | |
Register | register | children | |
OnMount | onMount | children | |
OnUnmount | onUnmount | children | |
Select | select | children | |
Path | path | children | |
Default | default | children | |
Throttle | throttle | ms | 0 |
Debounce | debounce | ms | 0 |
Constant | constant | children | true |
Strict | strict | children | true |
Debug | debug | enabled | true |
Verbose | verbose | enabled | true |
Live Editor
Result
Loading...
Register
can be specified multiple times.
Live Editor
Result
Loading...