How to create react app using typescript?

In this article let’s discuss about How to create react app using typescript?. Let’s go through the following methods without any delay.

Method 1:

npx create-react-app app-name --template typescript
# or using yarn
yarn create react-app app-name --template typescript

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

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

# or

yarn create react-app my-app --template typescript

Hope the above solution works.

Realted Posts : How to remove unused dependencies on pacman?