React Router
React router helps you manage the flow of data through your apps, sending information where it needs to go.
Installing and using React Router v6 (in Hindi)
Concepts
1

2

3

4

5

6

7

8

Quizzes
What is the command to install React Router package that's used in the videos?
Question 1 of 16
What is the purpose of <Link />
component in React Router when we already have <a>
anchor tags in HTML?
Question 1 of 16
Which prop is used in <Link />
component to specify the path?
Question 1 of 16
Which of these statements are true about <Routes>
and <Route>
component in React Router v6?
Question 1 of 16
Which prop is used in <Route />
component to specify the path?
Question 1 of 16
Which prop is used in <Route />
component to specify the component to render if path matches?
Question 1 of 16
What are the differences between <Link />
and <NavLink />
?
Question 1 of 16
What hook allows us to easily use dynamic URL parameters in React Router v6?
Question 1 of 16
What hook should be used if we want to perform some side effect whenever the current url changes?
Question 1 of 16
What are some of the use cases of query parameters?
Question 1 of 16
What do we mean by programmatic navigation?
Question 1 of 16
How do you implement "back button" functionality of browser using useNavigate
hook?
Question 1 of 16
Which of these are good examples of scenarios where programmatic navigation can be used?
Question 1 of 16
Which of these paths will match with the URL https://dev11.in/topics/react-router?
Question 1 of 16
Select all the statements that are true about the following code in React Router v6:
<Route path="/apple"> <Route path="/" element={<ApplePage />} /> <Route path="*" element={<Navigate replace to="/apple" />} /> </Route>
Question 1 of 16
Select all the statements that are true about <HashRouter>
and <BrowserRouter>
in React Router v6: