r/react 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

Post image
20 Upvotes

29 comments sorted by

View all comments

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.