Not Found
Not Found
Not Found

Submitted

Interactive Pricing Component using React, Styled Components

#react#styled-components
Shivam 520

@shivjoshi1996

Desktop design screenshot for the Interactive pricing component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hey everyone,

This is my (admittedly messy) solution using React. I've only recently started learning/using react so I understand that I should refactor the code to split into further components (e.g. a component for the slider).

Any suggestions on how to improve, including whether I am using useEffect() correctly, would be appreciated. I know useEffect & setState trigger re-renders so I am not sure whether this solution is performant. I assume it is not.

Cheers! Shiv

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