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

💰Pricing-Component-With-Toggle | React | CSS modules💰

Sam 910

@JustANipple

Desktop design screenshot for the Pricing component with toggle coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hi! I've made a solution for this challenge using React!

This time i worked with prop drilling to pass switch state to plan components so that they change their plan price when the switch is triggered

Plan blocks are reusable components that accept a "dark theme" class to change their appearance

I would be glad to receive tips on how to improve my solutions

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