title: I am trying to build NPM module with React Hooks and Webpack , so after Publishing package when i try to use it's giving Invalid Hook call Error
body: <p>so after publishing package when i import it in local application then it's giving me</p>
  <p><strong>There are three common reasons you might be seeing it:</strong></p>
  <ol>
  <li>You might have mismatching versions of React and React DOM.</li>
  <li>You might be breaking the Rules of Hooks.</li>
  <li>You might have more than one copy of React in the same app.</li>
  </ol>
  <p>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.</p>
  <p>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 ?</p>