Design comparison
SolutionDesign
Solution retrospective
I have used React useReducer for the logic and Styled components ThemeProvider and context API to switch themes. It detects on start you preferred theme and stores if you change one in storage. The calculator supports very basic calculations with some limitations. So nothing fancy here. My main learning was the ThemeProvider wich made the switching theme super efficient.
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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