I create a react library using https://www.npmjs.com/package/create-react-library And successfully used it on other React project. But when I tried to use react hooks functiona
I have created a React library with create-react-library
this library is your General
component. I have published it to npm here https://www.npmjs.com/package/stackoverflow-test and a React app for use it here https://codesandbox.io/s/mm7yl83o28.
Just click on General component
text and count
will be incremented.
I cannot reproduce your issue, just use this test to check your implementation.