Skip to content
Advertisement

how can i use Route without getting any errors like this

Guys i’m trying to work on my navigation bar and use route but it always shows errors

I don’t know the reason but it isn’t convinced with the routes at all and the error is

JavaScript

below is my app.jsx code

JavaScript

and my navigation is this code as well

JavaScript

though i was working navlink and yet it didn’t work and showed some weird error but i need to work this route first please

Advertisement

Answer

Your implementation seems to be incomplete. You’re missing BrowserRouter. Also, look at this response – it shows well how to use useRoutes.

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement