Complete React Tutorial (& Redux) #26 - Links & NavLinks

Complete React Tutorial (& Redux) #26 - Links & NavLinks

Net Ninja

5 лет назад

99,550 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Kirstin
Kirstin - 19.07.2022 12:33

if someone here encounters some error with the router, just install this via terminal:
npm install [email protected]

Ответить
The Soul Crisis
The Soul Crisis - 10.05.2022 10:16

This was such a short and sweet video on the matter! A few years later it's still a clean and modern way of handling such cases, thanks for putting out this brief gem of a video. <3

Ответить
C L
C L - 20.01.2022 17:33

Thank you. Just what I was looking for. Short and to the point.

Ответить
Erudite Jones
Erudite Jones - 13.12.2021 18:35

thank you! I SPENT 8 HOURS TRYING TO DO THIS!!! THANK YOU!

Ответить
Pratyush kHANDELWAL
Pratyush kHANDELWAL - 09.04.2021 13:03

my list is getting aligned towards left beneath poketimes tag . what should i do about it ?

Ответить
Pablo Domínguez
Pablo Domínguez - 03.04.2021 23:25

How to pass parameters to those Route components?

Ответить
Enes Karakaş
Enes Karakaş - 29.03.2021 14:03

ty

Ответить
Fauzan Waseem
Fauzan Waseem - 13.11.2020 08:18

Master piece of a course brother.

Ответить
Jibin
Jibin - 24.10.2020 10:35

I am not skipping any of your adds even it is a minute long
Thank you ninja guru for this amazing content.

Ответить
Sunrise Business Club
Sunrise Business Club - 06.10.2020 18:12

How react can make a request to a server if ALL pages (links) are local components????

Ответить
Rishikesh K
Rishikesh K - 01.10.2020 17:33

Hey Shaun can you add up some videos on hooks

Ответить
Muhammad Siddiqui
Muhammad Siddiqui - 28.08.2020 14:50

Loving it yay....LoL....

Question: How to make drop down menus?

Ответить
Muchammad Rivari
Muchammad Rivari - 06.08.2020 18:32

Nice explanation

Ответить
JustNumber
JustNumber - 24.06.2020 08:05

even though the tutorial is short you get a lot of knowledge from it Thanks Shaun this course is the best

Ответить
Camille Mai
Camille Mai - 16.05.2020 19:46

Lmao just struggled for half an hour trying to fix my nginx configuration, turns out I was writing link with a lowercase L.

Ответить
Sweety Jain
Sweety Jain - 16.05.2020 12:46

Thanks a lot:) explanations are good.

Ответить
Pratik
Pratik - 29.04.2020 19:27

what if user types url as /login
but that route in not defined at all
and react shows white screen at that time
so how can i handle wrong route request

Ответить
Yashwanth somayajula
Yashwanth somayajula - 10.03.2020 09:20

one question that has been troubling me is that how do you render the link of the sidebar in the same component itself?

Ответить
Ashlin Gabriel
Ashlin Gabriel - 28.09.2019 22:11

Quick question @The Net Ninja, what if i have a chart with Odata connection. If my data changes then chart has to be rendered !! so will this be an issue????

Ответить
Thea Mjolnir
Thea Mjolnir - 09.09.2019 18:40

If you had to put className where would that be?

Ответить
Alan Tao
Alan Tao - 30.07.2019 20:53

I've learned a lot in this course. Your explanation about react is really clear. Thank you so much, Shaun!

Ответить
Nathaniel Debache
Nathaniel Debache - 24.07.2019 15:07

You make really amazing video ! Thanks !!!

Ответить
BarrellRofl
BarrellRofl - 03.07.2019 03:09

Error now Error: Invariant failed: You should not use <Link> outside a <Router>


I had to get rid of the navbar.js and use the following on App.js render:

<div className="App">
<BrowserRouter>
<nav className="nav-wrapper red darken-3">
<div className="container">
<a className="brand-logo">Poke'Times</a>
<ul className="right">
<li><Link to="/">Home</Link></li>
<li><Link to="/about">About</Link></li>
<li><Link to="/contact">Contact</Link></li>
</ul>
</div>
</nav>

<Switch>
<Route exact path='/' component={Home}/>
<Route path='/about' component={About}/>
<Route path='/contact' component={Contact}/>
</Switch>
</BrowserRouter>
</div>

Ответить
Keith Bacalso
Keith Bacalso - 07.06.2019 05:38

Ninja pls reply me, why are you only using "Link" for Navbar.js and used "Route" for App.js? is it not ok if you use "Link" in App.js too?

Ответить
Nidhi Shaji
Nidhi Shaji - 31.05.2019 09:44

This is cool..Learning a lot..Thanks a lot..

Ответить
iamkiko
iamkiko - 30.04.2019 14:15

Does this page still count as a SPA?

Ответить
bundit hongmanee
bundit hongmanee - 11.04.2019 07:03

Great video. Thanks.

Ответить
Mari Taslagyan
Mari Taslagyan - 10.03.2019 06:09

Someone please help me out. How do we pass the props to the child component from App.js when we are using the router?
In the previous examples we would do for example <Home addNinja={this.addNinja}/> Now that we are using the route tag, how do we pass down this.addNinja?

Ответить
Saint Salad
Saint Salad - 18.01.2019 14:58

Simple yet informative. Thanks for this

Ответить
Sergi
Sergi - 05.01.2019 13:21

Really this course is priceless.

Ответить
Just Adam
Just Adam - 27.12.2018 21:19

I just flipped every website for a good react course and I didn't understand a shit, but now with this i'm not afraid for the first time from react! I really want to donate but my country is not supported by online money handeling

Ответить
hassan munir
hassan munir - 17.12.2018 21:28

Any one?

Ответить
hassan munir
hassan munir - 17.12.2018 20:58

I click on links it only changes URL but the page does not show in the browser. I have tried every single solution but all in vain. Kindly help me.

Ответить
Prabin Siwakoti
Prabin Siwakoti - 02.12.2018 15:55

Best tutorials for reactjs, thanks a lot for Net Ninja.!

Ответить
lardosian
lardosian - 04.11.2018 15:21

Really enjoying React so far, thanks Shawn, you rock!

Ответить
Nabil Tharwat
Nabil Tharwat - 27.09.2018 20:59

Man I'm loving this channel. Every single line that leaves his mouth is right on point and helpful in one way or another. Thanks Ninja!

Ответить
David Eugene
David Eugene - 02.09.2018 03:00

edspeedy toujours là, en force !
Toujours excellent !
Merci :)

Ответить
Szymon Oleszek
Szymon Oleszek - 01.09.2018 18:24

So in the nav should be single Nav tag and the rest NavLinks am i right? Couse when I made all the NavLinks then i had Home still active even if i clicked on another one. Solution is adding the exact attribute to home. But is there the best way? Thank you so much for this series you are awsome teacher !

Ответить
Chon Hee Cho
Chon Hee Cho - 31.08.2018 13:13

The "Link and NavLink" is very useful. It saves several reloading, which saves us time and the money we pay for the communication charges. Thanks!

Ответить
SN
SN - 27.08.2018 22:09

In what way is this about redux?

Ответить
RĂZVAN-COSMIN POPA
RĂZVAN-COSMIN POPA - 26.08.2018 19:41

REACT MOBX please

Ответить
Cel
Cel - 26.08.2018 08:12

thank u for sharing .. love from indonesia

Ответить
CiscoStu
CiscoStu - 25.08.2018 06:42

Great Tutorial, how do you deal with SEO crawlers while on a SPA? crawlers will wait for a page reload to "crawl" through the content on every link click, since the component is intercepting the call and rendering the component is this going to stop the crawler? isn't this very detrimental for SEO friendly web development?

Ответить
Abhishek Kumar
Abhishek Kumar - 24.08.2018 22:40

Thank u for this awesome video

Ответить
Tam Jid
Tam Jid - 24.08.2018 20:36

I did NavLink to "/" and background color for "a .active" . The Home's class remains "active" at other two pages.

Ответить
Amar
Amar - 24.08.2018 19:10

You are amazing , I cant wait for the rest of this course . You made react looks so easy to understand . Thank you

Ответить
Sakshat Donde
Sakshat Donde - 24.08.2018 16:16

Excellent videos! Really looking forward to Redux. How many videos before we get there? :)

Ответить
Raymond Michael
Raymond Michael - 24.08.2018 14:28

That "Links & NavLinks" is a life saver for real.
You'd a very vision to revisit this react series.
You're touching a lot of cool stuff bro.
Keep it up, and please tell me that you're currently working on udemy course right now

Ответить