Submitted almost 2 years agoA solution to the FAQ accordion challenge
FAQ Accordion with React
accessibility, react, vite
@AmanuelCh

Solution retrospective
What challenges did you encounter, and how did you overcome them?
At first I thought managing the state in each FAQ component will do the job. But I wanted to enhance the UX by closing an opened accordion if another accordion is clicked. So, I uplifted the state to parent component and manage the children's state.
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Amanuel Chaka'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