VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
React Router Crash Course

React Router Crash Course

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
React Router is commonly used to make different routes for pages in React Applications. This crash course will teach you how to create routes in your React applications. This course covers BrowserRouter, Switch, Nesting Routes, Redirecting Routes, match and history props, including useHistory, useParams, useLocation, and useRouteMatch Hooks
Date: 2022-03-14

Comments and reviews: 10


it's not working even after adding the components.
import - BrowserRouter, Route - from 'react-router-dom';-
import './App.css';-
import Header from './components/Header';-
import Home from './Pages/Home';-
import About from './Pages/About';-
import Profile from './Pages/Profile';-
function App() --
return (-
);-
--
export default App;-
where is the error??
please help someone.

reply

this is my another hindu- instructor and i know this is gonna be a great teacher. I've watched a lot of tutorials by hindu- instructures and they are just amazing. they have different way of teaching us. though i always choose the best that works for me and that is either english and hindu- instructor. thank you sir.
reply

Thank you for the detailed video about React Router. I have a question about nested routes. How could we have nested routes within the home page. For example, the 'path' and url give us only the slash '/' and therefore the path in this line of code evaluates to //viewProfile, which throws error?
reply

how can we change the root component?
for example we have navbar in app.js file it still remains at the same place in entire project how can we change or modify like add some more links to that..
explain ASAP

reply

You sir, is the most hilarious Teacher I encountered here hahaha I enjoyed and easily understood the concept of react-router because of the way you are teaching. Hopefully I would be able to apply it right as well.
reply

Thanks for the detailed video. I think it's important to note that many of the techniques discussed in this video use hooks and therefore only work with functional components, not class components.
reply

at 30:00 why did he use history in dependencies of useState? I think it cause cause a loop of rerenders, because he is pushing in history in useeffect callback. and history is in dependecy too.
reply

That's great
How it possible when you click on view profile see new page of view profile I mean that page completely refresh and just show the content related to view profile component

reply

FYI guys: This tutorial is for React Router v5. The latest version right now is v6. I wish it was mentioned in the title. Other than that its very good tutorial. Thanks for teaching us
reply

Error: A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .
that keeps showing to me even if i did the same as him i am on 8:41

reply
Add a review, comment






Other channel videos