Responsive FAQ Accordion using Reactjs

Solution retrospective
I have completed this as my 15th challenge in Frontend Mentors. I developed this page using ReactJS library. I am just starting to learn it.
I used conditional rendering
and useState
hook to manage the state of the accordion. I find it very easy to make it as components so that I could reuse it.
To make all challenges to be in the same place, I used react-router. I am glad to accept any feedback and suggestions regarding the accessibility and the techniques that I have used to develop the webpage.
Can someone go through my code and point out the mistake. So that I could search for the right way to do it.
If you have to correct any mistakes that I have done.... I am happy to recive the comments.
Advance thanks for the comments 🫡
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Madhavan's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord