Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 3 years ago

Calculator App using React, TypeScript, Styled-Components

react, typescript, styled-components
Shivam•520
@shivjoshi1996
A solution to the Calculator app challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hi everyone,

This is my first time using TypeScript, so any specific feedback relating to that would be awesome!

I'm also wondering whether the way I've implemented the theme toggle is correct, or is this a situation where I should be using the Context API?

Some things I may work on later:

  1. Ensuring users can click an operator instead of having to click the equals button before they can start a new calculation.
  2. Making the calculator more accessible by allowing users to use keyboard buttons for numbers.

Any other feedback on how to do the above or any other feedback would be appreciated.

Thanks!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Shivam's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License