MCPcopy Index your code
hub / github.com/reactjs/react-codemod / isInitialStateLiftable

Function isInitialStateLiftable

transforms/class.js:167–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 );
166
167 const isInitialStateLiftable = getInitialState => {
168 if (!getInitialState || !(getInitialState.value)) {
169 return true;
170 }
171
172 return hasSingleReturnStatement(getInitialState.value);
173 };
174
175 // ---------------------------------------------------------------------------
176 // Checks if the module uses mixins or accesses deprecated APIs.

Callers 1

createESClassFunction · 0.85

Calls 1

hasSingleReturnStatementFunction · 0.85

Tested by

no test coverage detected