react gives me a warning: \"A component is changing an uncontrolled input of type checkbox to be controlled. Input elements should not switch from uncontrolled to controlled (or
If your state is initialized with props.value being null React will consider your Checkbox component to be uncontrolled.
props.value
null
Checkbox
Try setting your initial state so that value is never null.
this.state = { value: props.value || "" };