Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 11 months ago

Simple React Accordion App with Responsive Design

react
weixin•110
@twx0504
A solution to the FAQ accordion challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I am proud of myself finishing this project with react, although it was not a complicated one. Throughout the project, I still felt like I was not familiar enough with even the basic html and css, and I have to look it up a lot from the documentation like MDN. This made me realized that it is important to strengthen what I learnt with actual projects.

What challenges did you encounter, and how did you overcome them?
  1. Struggling with responsive design, especially the use of media query. I figured out using CSS custom properties with media query, so I can use media query to update those custom properties' values to target different devices.

  2. Implementing the opening and closing of details elements' contents. Use of useState in React to solve it, though I have encountered some glitching or re-rendering issue due to my bad handling of the case.

What specific areas of your project would you like help with?

I would like to get help with how usually people implementing responsive design, would be very helpful if someone could share with me, and tell me what I did wrong in my responsive design.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on weixin'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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License