constitutional-coralC
Refine3y ago
65 replies
constitutional-coral

useLocation in v4

I'm using

const location = useLocation()
const { products, code } = location.state as any


but got Uncaught Error: useLocation() may be used only in the context of a <Router> component.
Was this page helpful?