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

I used React, CSS, Git, and semantic HTML for a responsive recipe page

react
Hart Selwyn•120
@hartselwyn
A solution to the Recipe page 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?

Most Proud Of I'm most proud of successfully implementing a dynamic and reusable table component using React's .map() function and clean and responsive styling that adapts well to different devices. Additionally, I ensured the page remained accessible and visually appealing with minimal code bloat.

What I'd Do Differently Next time, I would focus on improving performance by optimizing component re-renders and exploring more advanced CSS techniques, like animations, to enhance user experience. I'd also spend more time on accessibility features, such as better keyboard navigation and ARIA roles, to make the page more inclusive.

What challenges did you encounter, and how did you overcome them?

Challenges Encountered One of the main challenges I faced was dynamically rendering the nutrition table while maintaining a clean, responsive design with only horizontal lines. I also encountered issues with styling the table rows consistently and ensuring accessibility for all users. Debugging layout issues across different screen sizes and browsers was another hurdle.

How I Overcame Them To address these challenges, I used React's .map() function for efficient dynamic rendering and CSS properties like border-collapse and border-top for precise table styling. I relied on browser DevTools for debugging layout inconsistencies and tested the design on multiple devices to ensure responsiveness. For accessibility, I used semantic HTML elements like and and referred to documentation and best practices for guidance.

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

Nothing in particular

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 Hart Selwyn'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

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