* Implements an host component that allows setting these optional * props: `checked`, `value`, `defaultChecked`, and `defaultValue`. * * If `checked` or `value` are not supplied (or null/undefined), user actions * that affect the checked state or value will trigger updates to the element
(element, props)
| 3829 | */ |
| 3830 | |
| 3831 | function getHostProps(element, props) { |
| 3832 | var node = element; |
| 3833 | var checked = props.checked; |
| 3834 | |
| 3835 | var hostProps = _assign({}, props, { |
| 3836 | defaultChecked: undefined, |
| 3837 | defaultValue: undefined, |
| 3838 | value: undefined, |
| 3839 | checked: checked != null ? checked : node._wrapperState.initialChecked |
| 3840 | }); |
| 3841 | |
| 3842 | return hostProps; |
| 3843 | } |
| 3844 | |
| 3845 | function initWrapperState(element, props) { |
| 3846 | { |
no outgoing calls
no test coverage detected