function isControlled(props) {
  var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  return usesChecked ? props.checked != null : props.value != null;
}
Provide a linked `value` attribute for controlled forms. You should not use
this outside of the ReactDOM controlled form components.