create-react-hook
create-react-hook copied to clipboard
hook rule validation after being imported in real project
I am trying to publish my own hook as a package. The library works fine. I can run the code in the given example code. but when I link the library to an existing project or publish the library, I get error message saying the hook is breaking the rule. I tried updating the react version, still the problem remains.