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

Function createFindPropFn

transforms/class.js:101–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 // ---------------------------------------------------------------------------
100 // Helpers
101 const createFindPropFn = prop => property => (
102 property.key &&
103 property.key.type === 'Identifier' &&
104 property.key.name === prop
105 );
106
107 const filterDefaultPropsField = node =>
108 createFindPropFn(DEFAULT_PROPS_FIELD)(node);

Callers 4

filterDefaultPropsFieldFunction · 0.85
findGetInitialStateFunction · 0.85
collectStaticsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected