Joaquin Solís

Add typescript to a project

npm install --save-dev typescript @types/react @types/react-dom

Create config file

npx tsc --init

In that file, we can set some config options. For instance, we need to able jsx option in line 12.

Also, we can create manually a tsconfig.dev.json file to set dev options.