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

Function createMethodDefinition

transforms/class.js:462–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460 // ---------------------------------------------------------------------------
461 // Boom!
462 const createMethodDefinition = fn =>
463 withComments(j.methodDefinition(
464 'method',
465 fn.key,
466 fn.value
467 ), fn);
468
469 const updatePropsAndContextAccess = getInitialState => {
470 const collection = j(getInitialState);

Callers 2

createConstructorFunction · 0.85
createESClassFunction · 0.85

Calls 1

withCommentsFunction · 0.70

Tested by

no test coverage detected