
React Routing Problem. I Install react-router-dom but it don’t work how can i fix

This tutorial will be reading page. but my pc don’t lick this
>Solution :
The code you are using is react-router-dom@5 code (i.e. the Redirect, Switch, etc) but the error indicates you have installed the latest major version, react-router-dom@6.
Either revert back to v5 with the following CLI commands:
npm uninstall --save react-router-dom
npm install --save react-router-dom@5
Or keep RRDv6 installed and follow the v5 migration guide to update/replace the components and hooks that were replaced in RRDv6 from v5.