Closed douglasgomes98 closed 1 year ago
Hi 👋 can you please share all the code involved (with stackblitz for example) ? So I can reproduce the issue and poke around to find the issue.
I managed to get it working, it was project setup where I was using react-router-dom as an external library. thanks!
It's my storybook configuration:
It's my story:![code](https://user-images.githubusercontent.com/47008462/186237569-1edd4326-7bb3-47e5-8ad0-716a7f7810ae.png)
The error; useLocation() may be used only in the context of a component.