Simple React Accordion App with Responsive Design

Solution retrospective
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?-
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.
-
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.
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.
Please log in to post a comment
Log in with GitHubCommunity 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