6 min read
•Question 22 of 48mediumReact Router Basics
Client-side routing in React.
What is React Router?
React Router is the standard routing library for React. It enables navigation between views without page reload.
Key Components
- BrowserRouter: Wraps app, enables routing
- Routes: Container for Route components
- Route: Maps path to component
- Link: Navigation without reload
- useNavigate: Programmatic navigation