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

Method componentWillMount

test/AppContainer.dev.test.js:2370–2376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2368 }
2369
2370 componentWillMount() {
2371 const oldRender = this.render.bind(this);
2372 this.render = () => {
2373 this.superSecret = this.secret + 1;
2374 return <div>PATCHED + {oldRender()}</div>;
2375 };
2376 }
2377
2378 render() {
2379 return <div>{this.superSecret}</div>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected