onChange
Callback fired when the state is changed.
Parameters
{React.ChangeEventevent.target.value
(string). You can pull out the new checked state by accessing event.target.checked
(boolean).
Callback fired when the state is changed.
{React.ChangeEventevent.target.value
(string). You can pull out the new checked state by accessing event.target.checked
(boolean).