In order to use Typescript with Create React App, type the following at the command prompt:

If you have Create React App Installed:

create-react-app nameOfProject --template typescript

If you don’t have Create React App Installed:

npx create-react-app nameOfProject --template typescript