MCPcopy Create free account
hub / github.com/Lobos/react-ui / handleChange

Method handleChange

src/Switch.js:39–44  ·  view source on GitHub ↗
(ev)

Source from the content-addressed store, hash-verified

37 }
38
39 handleChange(ev){
40 this.setState({'checked':!this.state.checked})
41 if(this.props.onSwitch){
42 this.props.onSwitch(ev.target.checked)
43 }
44 }
45}
46
47Switch.PropTypes = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected