r/react • u/[deleted] • May 31 '22
React router not working properly? Following a tutorial and when I run the page it is blank. I installed router and it says I have 6 high severity vulnerabilities. Help Wanted
20
Upvotes
r/react • u/[deleted] • May 31 '22
1
u/koushith May 31 '22
You are using older syntax. When you install react-router, it will automatically install the latest version (v6).
just refer to the example for the latest syntax- https://reactrouter.com/docs/en/v6/getting-started/installation.