Closed pca2 closed 5 years ago
What React version do you use?
I don’t have React installed globally:
npm list -g --depth=0
/usr/local/lib ├── axios@0.18.0 ├── eslint@5.13.0 ├── express-generator@4.16.0 ├── ijavascript@5.0.20 ├── mongodb-stitch-cli@1.1.0 ├── npm@6.5.0 └── zero@1.0.8 On Feb 28, 2019, 5:10 AM -0500, Pavle Vojinovic notifications@github.com, wrote:
What React version do you use? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
This is probably a zero related bug. Somewhere in ‘handler-react’ package. The error page says to check for multiple versions of react being loaded. The react handler does use it’s own react for SSR and the client build has it’s own React dependency.
I am looking into it today.
It looks like the problem only happens during the server render. Because if I render a dumb component and then change it to use hooks, the HMR-updated component works fine in the browser.
I have fixed this in the latest version. Have a look!
👍 Looks good to me, thanks
Do you support React Hooks yet? I copied and pasted the example code from the React website, however I was hit with an error: