Build a React Accordion from Scratch | ReactJS tutorial
Vložit
- čas přidán 2. 12. 2020
- Learn how to build an accordion in ReactJS. We'll go through and demonstrate piece by piece how to put together an accordion.
💛 Be sure to comment like and subscribe to the channel! I have plenty more videos: / @thetechteam
Thank you so much! Of all the tutorials, articles, and codepens I searched through, this is the only one that worked in my case.
I love the way you simplified this. Thanks bro
Very simple to the point explanation. Thank you
Simple, cool, effective and that's only the way which i could use
Thank you so much!
Excellent stuff, well done!
Excellent stuff. Its working. 🔥🔥
Thank you! Dont know about the other comments.. i am working in Functional Components and this works like a charm
Great! will use this logic on my project, thank you!!
Perfect explanation. Thank you!
Simple and effective. Thank you.
Thank you so much. You have helped me! )
Simple and efficient, nice !
Thank You bro. .. You just saved my Day..
at minute 7:42 there are some styles added that the presenter doesn't talk about! Unless I missed it... He adds some styles to .content and then adds .content.show
i was wondering about the ame
Thank you so much . this is very helpful
Thank you so much. So good tutorial
Looks really good. That transition makes it work super cool.
I did it all step by step but I can't seem to get transition effect on it
@@prathmeshkalehere same, i even tried using chatgpt to help me, but it doesn't work
helped me a lot, thankssssssss
amazing!!!!! thank you!
Very cool, thanks
great work bro
Prior to this video, I used an NPM package for my Accordion, but I caught a bug that couldn't be fixed and made no sense (over 5 hours wasted), so I knew I needed to build one from scratch. After watching your video, probably 45 minutes later, my "from scratch" Accordion is working perfectly. So thank you very much.
I feel you. I wasted my entire day today trying to fix a bug related to react slick. I finally got rid of it and built a carousel myself. Still, so much left to do today... I'm tired.
@@a.human. Yeah, working with packages can be a real pain in the butt when trying to fix undesired behaviors. I know that all too well from working with Rich Text Editors...
Thank you so much!
very good, man!
Thankyou you are a great teacher
Thanks sir. Awasome..👌
perfect thank you bro
Thank you so much!!
Really appreciate it
Thank you, Sir!
Thank you bro !
kept simple and well explained
Thank You So Much
Thanks bro
Thank u bro i made it
Thanks a lot 🎉
Thanks Alot❤❤
Great, thanks
thank you !!!!
Thank you!!!!
thank you!
Awesome and simple , thanks
I have been having issues with React accordions cause the packages make the documentation bigger.
This is the best! Thank you!
Do you have a tutorial on nested accordion?
the reason one would find trouble with the code is because it was made directly in the app.js file, you have to destructure it yourself and he said so in the video.
If anyone doesnt understand why the stuffs get hidden at 7:34 then its because he adds another class content.show to it (see at 13:42) where content class hides the answers and content.show reveals it
good job
Thanks )
Best 🔥
after you set flex and center suddenly answer hidden, why is that?
He added "max-height: 0" and "overflow: hidden" to the 'content' class off-screen, apparently.
@@XxSouIxX wow thanks I was asking myself that same question
@@XxSouIxX Thank you, I was thinking the same thing.
czcams.com/video/XtkIFwQkacQ/video.html
would be awesome to publish the code and add a link to it in the video description
code works thanks, i dont what these dudes are saying
Not working with class component, any reference??
I did it all step by step but I can't seem to get transition effect on it
thanks
@the tech team can u plz share the code?
what is the 'i' in the toggle function? 'index'? I got error saying that 'i' is indefined...
I is referring to a specific item index
hi, very good video, I have a question though, can we use bootstrap accordion in react and to do the same thing you did?
yes
where to get this lorem ipsum text?
Where i can get the code
it helps me. thx
how can i unselect an item?
Add the else keyword just after your if statement.
As in else setSelected(i);
shout you out brudda
it is good but needs to fix the shaking part, every time it is toggle.
epic
source code? sound quality?
code available?
'i' is not defined no-undef
too late propably but did you manage to find what was wrong?
Your map should receive at least two arguments. You probably didn't define it there.
i is not defined
i have not worked
volume extremely low.
no working
not working properly
yes
time visit my two hour😡 not working class
Garbage. He doesn't explain anything about the css involved
fake video
lol
Gracias, fue muy útil
time visit my two hour😡 not working class