Skip to content

ravnhq/nerdery_react_04_2023-typescript-react-calculator-challenge

Repository files navigation

React Typescript Challenge

Here we have a working calculator react app. Your challenge is to:

  1. Convert all class components to function components.
  2. 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.

Setup

yarn install

Run

yarn start

Typescript

To validate typescript types

yarn tsc

Test

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_

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published