Submitted 3 months ago
Faq accordion using React context & reducers to manage state
@RogFed
Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
I am proud of using React context and reducers. These are very useful tools for small practice projects and help understand other tools like Redux
What challenges did you encounter, and how did you overcome them?Managing State of the Faq components, I imagined a version where there can only be one answer opened at a time, and you can also open and close if needed. This implied sharing the state between al Faqs instead of managing an individual state for wach Faq component. Therefore using context and reducer came in handy
What specific areas of your project would you like help with?NA
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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