Skip to main content

Composing State

Instead of specifying State properties you can compose them as sibling nodes.

Allowed components are:

ComponentMaps To PropGets Value From PropDefault value when present
Ididchildren
Renderrenderchildren
Registerregisterchildren
OnMountonMountchildren
OnUnmountonUnmountchildren
Selectselectchildren
Pathpathchildren
Defaultdefaultchildren
Throttlethrottlems0
Debouncedebouncems0
Constantconstantchildrentrue
Strictstrictchildrentrue
Debugdebugenabledtrue
Verboseverboseenabledtrue
Live Editor
Result
Loading...

Register can be specified multiple times.

Live Editor
Result
Loading...