This transform upgrades files based on react-with-hooks up to React 16.7.0 when it is released.
npm install @polizz/react-with-hooks-removal-codemod -D yarn add @polizz/react-with-hooks-removal-codemod -D removeWithHooksPolyfill <directory to scan> <options>
<options> are any valid jscodeshift options, i.e. "--extensions jsx"