Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 469 Bytes

File metadata and controls

14 lines (10 loc) · 469 Bytes

react-with-hooks polyfill codemod

This transform upgrades files based on react-with-hooks up to React 16.7.0 when it is released.

Install

npm install @polizz/react-with-hooks-removal-codemod -D
yarn add @polizz/react-with-hooks-removal-codemod -D

Run

removeWithHooksPolyfill <directory to scan> <options>

<options> are any valid jscodeshift options, i.e. "--extensions jsx"