Last updated on June 21, 2020

Typescript with React: Setup

👋 Hello! Most of these notes are "knowledge in the making", so parts of them could be incomplete 🙈, inaccurate 🙉 or even potentially wrong 🙊.

A handy setup to use when working with TypeScript and React.

Use Create React App to create the project:

$ create-react-app <name> --typescript

Use Prettier to prettify the code:

$ yarn add prettier --dev --exact
$ yarn run prettier --write src/**/*.tsx