useLocation and useNavigate in the layout?
I'm getting this stupid "<A> and 'use' router primitives can be only used inside a Route." error when I use those primitives in the Layout.
This is my app.tsx:
And I'm using the A component and useNavigate inside MainNav. Is that not the solid way? What is the solid way? Thanks
This is my app.tsx:
And I'm using the A component and useNavigate inside MainNav. Is that not the solid way? What is the solid way? Thanks