React Router and Its Components
What is a React Router?
React Router is a standard library for routing in React. It enables the navigation among views of various components in a React Application, allows changing the browser URL, and keeps the UI in sync with the URL.
Components of React Router
1. BrowserRouter
2. Routes and Route
3. Link and NavLink
To apply <Link> import it from the react-router-dom like this👇
import { Link } from "react-router-dom";
To apply <NavLink> import it from the react-router-dom like this👇
import { NavLink } from "react-router-dom";
Use cases for Link:
Use cases for NavLink:
Thank You So Much Bikash Karki Sir :)
#LearningReact #NMC #MERN #Day4