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

Function getInitialState

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

Source from the content-addressed store, hash-verified

1314 it('hot-reloads children without losing state', () => {
1315 const App = createReactClass({
1316 getInitialState() {
1317 return { value: 'old' };
1318 },
1319
1320 shouldComponentUpdate() {
1321 return false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected