Here we have a working calculator react app. Your challenge is to:
- Convert all class components to function components.
- Convert it to typescript. The configuration has been done for you. Your job
is to change each
.js
file to.ts(x?)
and fill out any missing types. The goal is to have an app with total type safety. React propTypes should be switched for typescript types.
yarn install
yarn start
To validate typescript types
yarn tsc
Before you can complete the challenge you need to run and pass the tests:
yarn validate
The original calculator project was taken and modified from here: https://github.com/ahfarmer/calculator_