react-crypto-tracker icon indicating copy to clipboard operation
react-crypto-tracker copied to clipboard

Route path not displaying anything as output

Open Venuluck opened this issue 3 years ago • 4 comments

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

Venuluck avatar Mar 21 '22 18:03 Venuluck

you have to change switch to routes and component to element in react router dom v6

lobnor2 avatar May 30 '22 03:05 lobnor2

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>

ayushgupta4002 avatar Jul 19 '22 11:07 ayushgupta4002

remove the router and install 5.2.0 version of it npm remove react-router-dom npm i [email protected]

subham827 avatar Jul 28 '22 10:07 subham827