react-crypto-tracker
react-crypto-tracker copied to clipboard
Route path not displaying anything as output
Sir, I got an error in the route path and it is not showing anything in the output in the crypto hunter please sir only one time contact me sir it is very important @ [email protected] please sir in
you have to change switch to routes and component to element in react router dom v6
There are some changes in new version of React try this code : <Routes> <Route path="/" element={<Homepage/>} exact></Route> <Route path="/coin/:id" element={<Coinpage/>}></Route> </Routes>
remove the router and install 5.2.0 version of it
npm remove react-router-dom
npm i [email protected]