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

Function createConstructorArgs

transforms/class.js:560–566  ·  view source on GitHub ↗
(hasContextAccess)

Source from the content-addressed store, hash-verified

558 ), getInitialState);
559
560 const createConstructorArgs = (hasContextAccess) => {
561 if (hasContextAccess) {
562 return [j.identifier('props'), j.identifier('context')];
563 }
564
565 return [j.identifier('props')];
566 };
567
568 const createConstructor = (getInitialState) => {
569 const initialStateAST = j(getInitialState);

Callers 1

createConstructorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected