Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Time Tracking app using React, Styled-Components, Mobile-First

#react#styled-components
Shivam 520

@shivjoshi1996

Desktop design screenshot for the Time tracking dashboard coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hi everyone,

Would appreciate any general feedback, but a few specific questions I have:

  1. After fetching the data, I filter the data it based on the timeframe that has been selected by mapping over the array and creating a new object, and then adding the relevant timeframe. Is there a better way I could be doing this?

  2. I know that this app could be optimized (maybe using useMemo / useCallback), for e.g. fetching the data which only needs to be done once rather than every time a component is updated. Could anyone help me figure out how this should be done, and where else it could be done?

Any other improvements and suggestions would also be appreciated.

Thanks!

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

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