Components
Controlled component contract
Receive a current value and request updates through a callback; the owner determines the next value.
Formal Syntax & Structure
react syntaxreact
function Child({ value, onChange }) { /* ... */ }Working Example
Example Snippetreact
<Guide expanded={expanded} onToggle={toggle} />