React + SCSS (no transition/animation)

FAQ Component using React template, SCSS, useState(). Adding a transition/animation is a bit tricky with my implementation so I didn't do try much, but I assume if my click handler instead changed height and visibility of the answer, then I could add a transition. I'm lazy right now though


Requested feedback

I'm all ears

Comments

Get future questions delivered straight to your inbox for free

Sign up and receive instant access to new questions when we publish them.

We‘ll only use your information to deliver new questions and to provide you updates about our product. We‘ll never spam you or sell your information without your consent. Unsubscribe at any time.