Create React App using npm command with TypeScript

If you want to create react application using the command line (terminal) with TypeScript as the default template we need to add the option --template=typescript along with the create-react-app command.


Syntax:
npx create-react-app <project-folder-name> --template=typescript

Example:

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

Create react application with TypeScript Example

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!