#56. React Router Tutorial || Complete guide to React Router DOM.

preview_player
Показать описание
❤️ Thanks for supporting KhanamCoding!

❤️Source Code:

❤️Udemy Premium Courses:
🎓Enroll in courses with premium learning experience & support KhanamCoding!😃

❤️SOCIAL MEDIA
Рекомендации по теме
Комментарии
Автор

Hello friends, this is the link of entire playlist..Hope you guys find is useful and helpful :)

KhanamCoding
Автор

this was a fantastic video, it really has helped me to understand!

ToshisanMotonaka
Автор

For any queries DM me in instagram, I will try to connect from 7:30am -8:30am
or
@khaiserkhanam

KhanamCoding
Автор

In react-router-dom v6, "Switch" is replaced by "Routes".

Raj_Vishwa
Автор

Thank you for the above example.
In react-router-dom v6, "Switch" is replaced by routes "Routes". You need to update the import from

import { Switch, Route } from "react-router-dom";
to
import { Routes, Route } from 'react-router-dom';

You also need to update the Route declaration from

<Route path="/" component={Home} />
to
<Route path='/welcome' element={<Home/>} />
example:

<ul>
<Link to='/'><li>Home</li></Link>
<Link to='/about'><li>About us</li></Link>
<Link to='/contact'><li>Contact us</li></Link>
<Link
</ul>
<Routes>
<Route exact path='/' element={<Home/>}></Route>
<Route exact path='/about' element={<About/>}></Route>
<Route exact path='/contact'
<Route exact path='/careers'
</Routes>

harishkrsoni
Автор

Unable to get the react router dom in package.json . It's not showing in Package.json dependency. Please let me know how to resolve it

manjunathogolla
Автор

If main navigation is going because of route Path so what is the use of Link To are To and Path related

zainulkhan