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

Method render

src/Switch.js:24–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 }
23
24 render(){
25 const { status } = this.props
26 const className = classnames(
27 'switch',
28 this.props.className
29 );
30 return(
31 <label className={className}>
32 <input type="checkbox" checked={this.state.checked} onChange={this.handleChange}/>
33 <span className="switch-item"></span>
34 <span className="switch-mask"></span>
35 </label>
36 );
37 }
38
39 handleChange(ev){
40 this.setState({'checked':!this.state.checked})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected