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

Method increment

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

Source from the content-addressed store, hash-verified

14 }
15
16 increment() {
17 this.setState({
18 counter: this.state.counter + 1,
19 });
20 }
21
22 render() {
23 return <span>{this.state.counter}</span>;

Callers 2

generation.test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected