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

Function findGetInitialState

transforms/class.js:113–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 createFindPropFn(GET_INITIAL_STATE_FIELD)(node);
112
113 const findGetInitialState = specPath =>
114 specPath.properties.find(createFindPropFn(GET_INITIAL_STATE_FIELD));
115
116 const withComments = (to, from) => {
117 to.comments = from.comments;

Callers 2

updateToClassFunction · 0.85

Calls 1

createFindPropFnFunction · 0.85

Tested by

no test coverage detected