Relative Content

Tag Archive for reactjsreact-routerreact-router-dom

Syntax error in routes using react router dom

I have been learning routing in react recently and this is the problem i am facing when i tried to use the object style routing rather than jsx style routing
error: SyntaxError: Unexpected token ‘<‘
Note : i have tried chat gpt and it is saying network error in fetching an api details but it is not that problem as the code is running in jsx style

Destroy is not a function

I am building a react app with react-router-dom for navigating to /about page with Link tag given by react-router. However when i click on the Link , it gives the following error :