(props)
| 8 | |
| 9 | class Switch extends Component { |
| 10 | constructor(props){ |
| 11 | super(props) |
| 12 | this.state = { |
| 13 | checked:props.checked |
| 14 | } |
| 15 | this.handleChange = this.handleChange.bind(this) |
| 16 | } |
| 17 | |
| 18 | componentWillReceiveProps(nextProps) { |
| 19 | if (nextProps.checked !== this.props.checked) { |
nothing calls this directly
no outgoing calls
no test coverage detected