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

Function filterGetInitialStateField

transforms/class.js:110–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 createFindPropFn(DEFAULT_PROPS_FIELD)(node);
109
110 const filterGetInitialStateField = node =>
111 createFindPropFn(GET_INITIAL_STATE_FIELD)(node);
112
113 const findGetInitialState = specPath =>
114 specPath.properties.find(createFindPropFn(GET_INITIAL_STATE_FIELD));

Callers 2

canConvertToClassFunction · 0.85

Calls 1

createFindPropFnFunction · 0.85

Tested by

no test coverage detected