Create new React App with TypeScript Template

How to create a new React App using TypeScript with help of npx create-react-app. We can easily create a new TypeScript React App with npx create-react-app by adding a typescript template to it. The below terminal command will do it for us.

npx create-react-app my-app --template typescript

The above command can be used in the terminal to create a new TypeScript react app. You can replace my-app with your app name.

Tags:

Typescript CRA command npm , react CRA with typescript template

About the Author: smartcoder

You might like

Leave a Reply

Your email address will not be published. Required fields are marked *