Great video. I was stuck and could not figure out where 'isExpanded' was coming from until I re-watched 5:18. The onChange event handler's function returns BOTH the event object and whether or not the Accordion tab is expanded, which you stored into a variable called 'isExpanded'. Thank you so much for these videos. I learn a lot better when I hear a lecture as opposed to reading text and your tutorials are absolutely amazing.
First word expanded is rule name form mui api. Second, in brackets is the same one declared in use state. So... rule expanded may be true or false and expanded==='panel1' will be set up as true or false. (this one can be changed to any other name).
Great video. I was stuck and could not figure out where 'isExpanded' was coming from until I re-watched 5:18. The onChange event handler's function returns BOTH the event object and whether or not the Accordion tab is expanded, which you stored into a variable called 'isExpanded'.
Thank you so much for these videos. I learn a lot better when I hear a lecture as opposed to reading text and your tutorials are absolutely amazing.
Thanks was stuck on the accordion for a while
Is there a way for expand all / collapse all panels with button click.. pls provide if any suggestions
Thank you well explained !
Code can be boiled down to that, too:
setExpanded(isExpanded ? "panel1" : false)
}
>
No, you cannot slide back the expanded accordion with above solution
Can we make horizontal accordion Thank you so much for video
Thank You Vish
What is the use of isExpanded ?
Can someone tell me how isExpanded works? I did not see that state/variable set up anywhere else
thank you for this video
HOw do I round the corners of the accordion when I have abackground color ?
How do I access the arrow down icon ? So it can be changed
Thank you.
Hi
what is your extention to write useState quickly and change it?
ES7+ React/Redux/React-Native snippets
Thanks 🥰🥰🥰
Thanks
Thanks It very helpfull with me and every one
expanded={expanded === 'panel1'}.
Please explain the where this code comes from? What's its use?
First word expanded is rule name form mui api.
Second, in brackets is the same one declared in use state.
So...
rule expanded may be true or false
and expanded==='panel1' will be set up as true or false. (this one can be changed to any other name).
Hello sir I need nodejs full tutorial plz..tq😍
Very nice
Bro next tutorial on making NFT website with react and solidity plzz
First