MCPcopy Create free account
hub / github.com/flyfloor/react-component / handlePlus

Method handlePlus

demo/example/ProgressDemo.jsx:21–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 }
20
21 handlePlus(){
22 let {value} = this.state;
23 value += 10;
24 if (value > 100) value = 100;
25 this.setState({
26 value
27 });
28 }
29
30 render() {
31 const {value} = this.state;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected