Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 3 years ago

Mobile-first Responsive Design, React, Redux

react, redux, node
Bryan Sanchez•590
@0-BSCode
A solution to the Todo app challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I definitely learned a lot with this one! Although I was able to build the functionality required for the challenge, I'm not sure if the methods I used were the cleanest way of doing so. Some points of confusion for me are as follows:

  1. I watched a tutorial that recommended me to create a folder for each React component and place the stylesheet for each component there instead of having one large stylesheet for everything. Although I do find this to be more organized, how can I minimize repeating myself if different components need to have the same styles? Should I use global CSS variables or is there some other technique or method that can be used?
  2. For the desktop design, I created a separate component (TaskInfoDesktop) to display only when the screen sizes matched those of the desktop while the component that needs to display only in mobile (TaskInfo) was made hidden. Is this good practice or is there another way to create responsive designs without having to create different components for both mobile and desktop screen sizes?

Any and all feedback is more than welcome!

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Travolgi 🍕•31,320
    @denielden
    Posted about 3 years ago

    Hi Bryan, great work on this challenge! 😉

    Also the enter key press not work for add task and I can add task also with blanks, add a control... The trim() method can help you -> read here

    Overall you did well 😁 Hope this help!

    Marked as helpful

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
Frontend Mentor logo

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

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub