so after publishing package when i import it in local application then it's giving me

There are three common reasons you might be seeing it:

  1. You might have mismatching versions of React and React DOM.
  2. You might be breaking the Rules of Hooks.
  3. You might have more than one copy of React in the same app.

after some googling i have checked with npm ls react command and it show me only 1 version available and i guess that's not an issue in case,hence i have change it to class based component to make it work.

So i would like to know is there any way to implement react hooks in npm module with webpack or any other way if possible ?

0

There are 0 answers