Pricing Component using React useState and styled using CSS Modules

Solution retrospective
This is my first attempt on a Frontend Mentor Challenge in React. It is also my first time using CSS Modules 😄
Any feedback would be and is always appreciated especially in how I wrote and split up the components in React. Thank you! 😀
Please log in to post a comment
Log in with GitHubCommunity feedback
- @kvncnls
Looks great Michelle!
- It looks like there's a small HTML issue with the label. It shouldn't have a div inside of it.
- If I had to be nitpicky, I'd just say that the default state should be monthly just like the design comparison. :P
- @MasterDev333
Great work! @Michelle! Your solution was spot on. It would be better if you toggle the switch by clicking label. And please add some transition effects on buttons. Look forward to seeing other solutions from you. Happy coding~
:)
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