Open ahnwarez opened 2 years ago
Currently gardenz uses react-router-dom version 5 and we want to upgrade it to version 6.
react-router-dom
Complete the following tasks
package.json
npm i react-router-dom@latest
client/App.js
Route
component
element
<>
<Route path='/' element={<Home />} />
useHistory
useNavigate
I'd love to do this! I imagine you could've done it yourself in the time it took to write those instructions, but I appreciate giving issues to us new guys :)
Currently gardenz uses
react-router-dom
version 5 and we want to upgrade it to version 6.Complete the following tasks
react-router-dom
inpackage.json
by runningnpm i react-router-dom@latest
client/App.js
, surround theRoute
s with `component
attributes toelement
<>
, for example:<Route path='/' element={<Home />} />
useHistory
touseNavigate
in all components.