MCPcopy Create free account
hub / github.com/gaearon/react-hot-loader / increment

Method increment

test/proxy/instance-method.test.js:50–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 }
49
50 increment() {
51 this.setState({
52 counter: this.state.counter + 100,
53 });
54 }
55
56 render() {
57 return <span>{this.state.counter}</span>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected