FAQ component

I created this with React. I felt really puzzled while implementing the condition the first question should be visible by default. I tried two different state, first to keep others as false and the other to maintain state of first component.


Requested feedback

What approach did you take? How did you make first question visible by default with using the key values.

Comments

You must be signed in to post a comment

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.