1. First Install react-router-dom npm i react-router-dom 2. Import the necessary modules //App.js import { Routes, Route, BrowserRouter as Router } from 'react-router-dom'; 3. Wrap every component that needs routing in a single Router component //....

Markdown supported · ⌘↵ to post
Developer Avocado
Frontend developer. Debugging this world one console.log() at a time
Thanks for sharing ! 👏