Parent setting prop to child with Context?
Say I have the following component:
A context provider allows the children
Question: how can I set the default selected toggle (when none is provided as above) as
A context provider allows the children
ToggleButton to access onChange in order to call this callback when a toggle is clicked.Question: how can I set the default selected toggle (when none is provided as above) as
"key"? As far as I know there might be no way.