What is the current behavior, and the steps to reproduce the issue?
yarn new-hook useNewHook fails with an error on the require() lines.
What is the expected behavior?
It creates a new directory and files.
How does this PR fix the problem?
It uses the ES module import syntax, instead of cjs. It looks like this file was missed in https://github.com/react-hookz/web/pull/1472, which converted everything else to use ES module syntax.
What is the current behavior, and the steps to reproduce the issue?
yarn new-hook useNewHook
fails with an error on therequire()
lines.What is the expected behavior?
It creates a new directory and files.
How does this PR fix the problem?
It uses the ES module import syntax, instead of cjs. It looks like this file was missed in https://github.com/react-hookz/web/pull/1472, which converted everything else to use ES module syntax.
Checklist