React hooks in react library giving Invalid hook call error
I was including my component library (for that matter any library) in my application as @Janith did using my-comp-lib:”file:../..” (I don’t want to publish every time I want to test) and I encountered the same issue. Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen … Read more