Run a single command to effortlessly prepend Reacts "use client" flag in files without it containing client-only patterns
- example usage with pnpm
pnpm ddcodemod react18 src --logs
-
react18
is the codemod flag -
src
is the directory to target recursively -
--logs
outputs detailed logs to a .gitignored directory at the root of the cwd in which this package is installed (a .ddcodemod dir)
- See the executable file for instructions or run
npx ddcodemod --help
yarn ddcodemod --help
pnpm ddcodemod --help