This repository was archived by the owner on Apr 1, 2023. It is now read-only.
This repository was archived by the owner on Apr 1, 2023. It is now read-only.
Error when using hooks #99
Closed
Description
I'm bootstrapping a React component library with this tool and I get: Hooks can only be called inside the body of a function component
.
Steps to reproduce:
- Create a library with
create-react-library
. - Update
react
andreact-dom
tov16.7.0-alpha.0
in./package.json
and./src/package.json
. - Use new React hooks feature inside
src/
.
If you try the example you get the error. One weird thing is that if you use hooks in the example
you don't get any error.
Metadata
Metadata
Assignees
Labels
No labels