FAQ React

I created an accordion component that spews out the FAQ content into the FAQ component


Requested feedback

How best could I have done this?

Comments

Theqwertypusher(about 3 years ago)

Whenever you create a list / map of react components, you need to include a unique key so React can identify the component when diffing the virtual dom. https://reactjs.org/docs/lists-and-keys.html

habdams(2 months ago)

Thank you for that, great catch

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.