Closed
Description
Description
The new react hooks API does not work with react-hot-loader. Using the example in my app with export default hot(module)(App);
at the bottom of app.js, the following error occurs:
Expected behavior
Should work.
Actual behavior
Uncaught Error: Hooks can only be called inside the body of a function component.
Reproducible Demo
Dunno of a demo is needed, just ping me if you need one.