(props)
| 1916 | var didWarnUncontrolledToControlled = false; |
| 1917 | |
| 1918 | function isControlled(props) { |
| 1919 | var usesChecked = props.type === 'checkbox' || props.type === 'radio'; |
| 1920 | return usesChecked ? props.checked != null : props.value != null; |
| 1921 | } |
| 1922 | /** |
| 1923 | * Implements an <input> host component that allows setting these optional |
| 1924 | * props: `checked`, `value`, `defaultChecked`, and `defaultValue`. |
no outgoing calls
no test coverage detected