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

Function hasReact

transforms/utils/ReactUtils.js:41–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 .size() === 1;
40
41 const hasReact = path => (
42 hasModule(path, 'React') ||
43 hasModule(path, 'react') ||
44 hasModule(path, 'react/addons') ||
45 hasModule(path, 'react-native')
46 );
47
48 // ---------------------------------------------------------------------------
49 // Finds all variable declarations that call React.createClass

Callers 1

Calls 1

hasModuleFunction · 0.85

Tested by

no test coverage detected