Wraps the HTML <input> element with type "checkbox" and creates an onChange function using the given setValue function. Also focuses the input when clicked (not default behavior in all browsers). Requires the input to be a controlled input.
<input>
"checkbox"
onChange
setValue
Wraps the HTML
<input>element with type"checkbox"and creates anonChangefunction using the givensetValuefunction. Also focuses the input when clicked (not default behavior in all browsers). Requires the input to be a controlled input.