Install and Configure TypeScript and Dependencies

Share this video with your friends

Send Tweet

First things first, let's install TypeScript in our project locally using npm i -D typescript. Next, I need to install our type dependencies. We could write our own types, but using type dependencies will speed this up and ease our process. So we will install those types using npm i -D @types/react @types/react-dom.

To have TypeScript in our project, we need to create and configure a tsconfig.json file. In this lesson, we will quickly configure the basics.