I'm making a set of simple react components useful for all kinds of apps. Today I'm making a collapsible element you can show or hide by clicking on a button.
00:00 Example collapsible
00:38 Project setup
04:55 Basic collapsible component
15:16 Styling the collapsible with css
20:21 Animating the collapsible
24:00 Fixing the animation with useRef
33:48 Outro
60 Comments