You are such a life saver! I spent hours trying to come up with a way to do it and I just couldn't get it to work. Also, as a beginner React developer, thank you for going step by step. It made it so much easier to follow. Thank you!
They really do seem to show up at the most random times, but always with a solid solution explained in a very casual "yeah you can just do it like this" kinda way. I love it.
haha dude you made my day, I did many tasks with the help of Hindu video tutorials, when I first started programming, I understood videos in English only with a Hindu accent
bro thank you so much. i use this in a project of mine switching images around and it came out great! I sort of knew it already but didnt know how to around the code correctly! live saver
Really, great job, dear! Now the question is what would you do if you had 100 cards? How would replace the hard-coded index number in the parent? Thanks in advance!
You just need an array of objects, you could pass an id or title there, after that just map over the array and pass the title / id. Hope that helps. Thanks for watching :)
Thank you so much. This is what I am looking for. I just wanted to check If I add the back and next button inside card components and it should open the prev and next components. Can you please give me some light on this ? TIA
Yeah you can do that, you always know which question is active, so if you are on question 2 lets say u would set active to first one when u click prev and 3rd one when u click next, but having it this way can get messy really fast, I would suggest using index for what you need, hopefully that helps. Thanks for watching :)
I'm not sure what exactly u would like to have and how u wanted to make it work, I would need to see an example in order to help you with that. Feel free to join the discord server and I'll help u out there. Thanks for watching :)
Hi, there is no way to add transition on display property. You can make it work with classes instead of toggling display none to block, that way you can add opacity or anything else and transition it, hopefully that helps. Thanks for watching :)
Not sure what do u mean by that, an active class is only for a single element. Right now that's how it works, if you select first one that one becomes active and so on, could you explain further on what you wanna do ? Thanks for watching :)
Pls I have an issue... My buttons are in another component far way. How do I make them control the tabs... Can u do a code for that?? I will really appreciate
This is okay but I cant help feeling like React router is seriously lacking in functionality. There is not a ton of real world use cases for displaying information on top of a different component. I want to be able to change the entire page on button click. React router does not seem to be capable enough to handle this. All the turtorials I have seen just allows you to pull a new component and display it along with the pre existing page components onto a page
Hey, I'm not completely sure what ur trying to achieve. React Router is great for changing pages, this example is perfect for something small like this where u wanna change the content of a single component, but u don't wanna navigate to different url or just don't wanna use Router for something small like this in general. Otherwise it would React Router always. Thanks for watching. :)
You are such a life saver! I spent hours trying to come up with a way to do it and I just couldn't get it to work. Also, as a beginner React developer, thank you for going step by step. It made it so much easier to follow. Thank you!
Thank you, much appreciated :)
even after 4 years, in the 2024, this video is project-saver for me 😍
After searching lot of videos but this helps a lot.
hours of hard work and all it needed was a random russian guy
They really do seem to show up at the most random times, but always with a solid solution explained in a very casual "yeah you can just do it like this" kinda way. I love it.
I'm not Russian, but I appreciate the kind words. Thanks for watching :)
@@gwenthedoll3677 Thank you :)
haha dude you made my day, I did many tasks with the help of Hindu video tutorials, when I first started programming, I understood videos in English only with a Hindu accent
THANK YOU SO MUCH 😭 I've spent so much on this and it was this simple, thanks a lot!
Glad you found it usefull. Thank you so much :)
bro thank you so much. i use this in a project of mine switching images around and it came out great! I sort of knew it already but didnt know how to around the code correctly! live saver
I was looking for a react router solution, however i decided to go with this instead lol thanks my man!
Glad you found what you needed, I have a router tutorial as well in case you ever wanna use that as well. Thank you :)
First comment on RUclips ever. Thank you so much for this! Cheers
Thank you :)
Thanks brother you saved my project. And I really appreciate your efforts 👍👍
Thank you, much appreciated :)
This helped me with my new assignment, thank you so much! 😭
Glad I could help. Thanks for watching :)
Hey Man its good tutorial for creating tab-bar but for bypass react-router you have to use Window.location.pathname for routing which also change url
You made this so easy to understand! Thank you. Worked like a charm on my project.
Great Tutorial. Very direct and simple implementation.
I'm glad you found it useful. Thank you :)
great tutorial, is there a way to make it render a component instead ?
Thanks a lot........it was so smooth to get the right way to do it.
Thank you so much. This is great. Your tutorial was very well explained and you went through step by step to the end. Fantastic.
Thank you so much :)
Really, great job, dear! Now the question is what would you do if you had 100 cards? How would replace the hard-coded index number in the parent? Thanks in advance!
I think it’s doable with another map in this case inside app.js file, but it depends how your data is stuctured
You just need an array of objects, you could pass an id or title there, after that just map over the array and pass the title / id. Hope that helps. Thanks for watching :)
@@Shadyholic Thank you!
@@h3webdevtuts Thank you! Much appreciated!
Thank you so much. This is what I am looking for. I just wanted to check If I add the back and next button inside card components and it should open the prev and next components. Can you please give me some light on this ? TIA
Yeah you can do that, you always know which question is active, so if you are on question 2 lets say u would set active to first one when u click prev and 3rd one when u click next, but having it this way can get messy really fast, I would suggest using index for what you need, hopefully that helps. Thanks for watching :)
yep! another problem solved by you
thank you soo much boss
Glad I could help. Thanks for watching :)
Thank you for sharing, I followed along and I have some errors, Do you have the repo for this ?
I do not have this on github, if you have any issues feel free to join the discord server in description and I'll help you out. Thanks for watching :)
Extraordinary explanation thank you so much 👌🏼👌🏼👌🏼😊
Thank you :)
thanks but how I can choose initial state ? for example if I need the One to be shown by default
Active state is what you want to change to whichever one you wanna display initially. Thanks for watching :)
Thanks for explaining this so simply!
Thank you so much :)
dude.. this helped me a lot, thank you!
Glad I could help. Thank you :)
If we click in the div that is displayed, how can we show another div, with different data inside?
WOW. You're a lifesaver! Thank you very much!
I'm glad you found it helpful. Thanks for watching :)
Thank You very much, I fix my router issues
Glad you got it working. Thanks for watching :)
God or what ? ❤️🤩
Thank you :D
If the change button is in the Card components what do I have to do..?
I'm not sure what exactly u would like to have and how u wanted to make it work, I would need to see an example in order to help you with that. Feel free to join the discord server and I'll help u out there. Thanks for watching :)
Like I'm on page number 4, If I do Alt+Left Arrow, would it take me to page number 3?
I'm not sure what your concern is, and if that would work or not. Thanks for watching :)
is there any way to add an opacity transition to this
Hi, there is no way to add transition on display property. You can make it work with classes instead of toggling display none to block, that way you can add opacity or anything else and transition it, hopefully that helps. Thanks for watching :)
It really helps, Thank You :) a "active" class loading to all links , how to fix it only for active button/links ?
Not sure what do u mean by that, an active class is only for a single element. Right now that's how it works, if you select first one that one becomes active and so on, could you explain further on what you wanna do ? Thanks for watching :)
Nice tutorial, cheers. To the point
Pls I have an issue... My buttons are in another component far way. How do I make them control the tabs... Can u do a code for that?? I will really appreciate
You saved me bro.... You saved me
Thank you :)
Lifesaver you are.
Glad I could help. Thanks for watching :)
supper clean easy nice thanks bro
Thank you so much :)
Thank you! You made my day 🙂
THANK YOU SO MUCH YOU SAVED ME
Thank you :)
how to get two cards when we click only on one button
Hi, you can add a second object inside first array and that's gonna give you another card. Hope that helps. Thanks for watching :)
This vid just saved my ass, thank you!
It really helps, Thank You :)
Thank you :)
very nice and simple
Thank you :)
Thank you soo much .You saved me
No worries. Thanks for watching :)
thanks u save a lot if time
Very good, thank you bro!!!
Genius man
Thanks :)
THANK YOU!💯💯
Thank you :)
How to do this on android? I mean the syntax
Not sure what do you mean by that, can u explain further? Thanks for watching :)
Really Helpful !
Thank you so much :)
too little font ,I couldnt see anything
Will make sure to fix that for future videos, thanks for a suggestion.
Thanks a lot!
Thank you :)
great tuto
Thank you :)
This is okay but I cant help feeling like React router is seriously lacking in functionality. There is not a ton of real world use cases for displaying information on top of a different component. I want to be able to change the entire page on button click. React router does not seem to be capable enough to handle this. All the turtorials I have seen just allows you to pull a new component and display it along with the pre existing page components onto a page
Hey, I'm not completely sure what ur trying to achieve. React Router is great for changing pages, this example is perfect for something small like this where u wanna change the content of a single component, but u don't wanna navigate to different url or just don't wanna use Router for something small like this in general. Otherwise it would React Router always. Thanks for watching. :)
Amazing
Thanks :)
Thanks bro
Thank you :)
wow thanks
Thank you :)
respect++ dude
you just got a new subscriber !
Its simply tabs
Thank you very much!