React Router in Depth #9 - Making Breadcrumbs (useLocation hook)

React Router in Depth #9 - Making Breadcrumbs (useLocation hook)

Net Ninja

1 год назад

47,453 Просмотров

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


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

@caio50000
@caio50000 - 13.01.2024 21:39

way easier than I thought that would be. nice job!

Ответить
@miloman1995s
@miloman1995s - 27.12.2023 10:39

you save my life, thank you mate

Ответить
@MentorAliu
@MentorAliu - 21.12.2023 18:17

just a tip, when you filter an array and want to remove all falsy values which in this case empty string is false, you can do this .filter(Boolean)

Ответить
@user-ip7eg7vw7i
@user-ip7eg7vw7i - 18.12.2023 12:53

const locationString = location.pathname .trim().slice(1, location.pathname.length).split("/").join(" ⟩ ")
^ You can use this short method for breadcrumps

Ответить
@zachariayussuf7652
@zachariayussuf7652 - 26.10.2023 02:05

Love your content . Great work as always .

I have one question though . Why didn't you use useState to hold the currentLink state, Isn't that what react is all about(not mutating variables(values) directly) ?
Sorry English isn't my first language.

I really love your content . You are gifted when it comes to making complex things easy for everybody .

Ответить
@gmjitendra
@gmjitendra - 21.10.2023 18:48

always excellent. Thank you so much.

Ответить
@annametel8627
@annametel8627 - 05.10.2023 15:06

Thank you ❤👍

Ответить
@omarr03
@omarr03 - 04.08.2023 07:44

how can I access objects of json server using slugs?

Ответить
@adarshkhatri993
@adarshkhatri993 - 04.08.2023 05:08

Your videos are pretty explanatory and helpful in real world example..
Thnx for making this video...😊

Ответить
@prashantpatel6334
@prashantpatel6334 - 20.07.2023 14:30

Not working for me

Ответить
@arturoordonez-hernandez8750
@arturoordonez-hernandez8750 - 16.06.2023 22:15

Thanks! This was very helpful (as are a lot of your videos). For what I'm doing, I had to end up adding an array prop to my Breadcrumbs component so some Breadcrumbs just display as text since their links just go to a blank page (they refer to a component dependent on parameters that sometimes doesn't exist).

Ответить
@khangmach5369
@khangmach5369 - 31.05.2023 14:40

Thank you for your videos. It helps me alot

Ответить
@rfryanfavour4369
@rfryanfavour4369 - 08.04.2023 19:28

I've told my friends 👥️️👥️️ b4 but ill say it again. If you weren't a developer a lot of people won't stay developers cause theres no one to hold their hands🤷🏿‍♂️

Ответить
@Venthyrus
@Venthyrus - 03.04.2023 17:42

it's an amazing content, I hope one day I can be as successful as you.

Ответить
@akhilgannu3239
@akhilgannu3239 - 01.04.2023 17:20

How can we change the name of the crumb because the name is coming from the url itself but want to have a different name

Ответить
@aytachchakif6327
@aytachchakif6327 - 02.03.2023 00:45

Thanks Shaun for sharing these tutorials with us, i really appreciate them. You are our brother from another mother 🍻

Ответить
@motivation0784
@motivation0784 - 15.02.2023 23:55

shaun sir if i try to print title in breadcrumbs that prints the encoded url how could I just print the text from url?

Ответить
@aniketjain6886
@aniketjain6886 - 07.02.2023 14:04

Lovely ❤

Ответить
@paulinapiatek8406
@paulinapiatek8406 - 04.02.2023 22:22

Awesome work! 👍

Ответить
@michalnowak2181
@michalnowak2181 - 03.02.2023 15:17

thx

Ответить
@viewvue3744
@viewvue3744 - 07.01.2023 14:31

can i ask you: what is differences between navlink and link in react router ? thank a lot

Ответить
@mohamedyoussef8835
@mohamedyoussef8835 - 04.01.2023 20:05

Awesome video +++++++++++ 😀

Ответить
@radosawweidemann4944
@radosawweidemann4944 - 03.01.2023 16:44

there should be += and I see =+. I see it's working you but me working only second option

Ответить
@silky2282
@silky2282 - 02.01.2023 20:47

hi shaun! i just wanted to ask you if there will be any new next js 13 course

Ответить
@ahoymatey1234
@ahoymatey1234 - 02.01.2023 01:12

another great tutorial series!

Ответить
@ibrahimshaheen8572
@ibrahimshaheen8572 - 31.12.2022 13:11

dear there is one problem on links for example
if we in help page then click on contact us
the breadcrumbs will bet help > contact
if we click at contact at the breadcrumb component it will direct to 404 page and the url will be helpcontact

Ответить
@bikramchettri9405
@bikramchettri9405 - 31.12.2022 11:25

Can we do go back?

Ответить
@Hacking-NASSA-with-HTML
@Hacking-NASSA-with-HTML - 30.12.2022 16:13

Thank you so much, sir, for all of your efforts and awesome work 🤝👍

Ответить
@rockbelleh6237
@rockbelleh6237 - 30.12.2022 16:00

My mentor n teacher tnks alot ur channel has reli impacted my life.please continue the good work.God bless n up lift you continually.Amen 🤗🤗

Ответить