nosco / hx

A simple, easy to use library for React development in ClojureScript.
MIT License
249 stars 16 forks source link

any #54

Closed ericzwong closed 5 years ago

ericzwong commented 5 years ago

This error occurs when I develop an npm package based on a hook and then reference it in another project: https://reactjs.org/warnings/invalid-hook-call-warning.html

i find the problem is "You might have more than one copy of React in the same app."

lilactown commented 5 years ago

This sounds like you are either bundling React with your npm module (you shouldn’t) or you are using the hook incorrectly.

Specifically re: bundling, this is not something hx can help you with. If you’re using shadow-cljs, I would ask in the #shadow-cljs channel in slack or open an issue.