Initialize the React project to use the TS environment
Both methods have been abandoned
-
create-react-app react-for-typescript --scripts-version=react-scripts-ts
-
create-react-app my-app --template typescript
Install typescript using NPX create-react-app my-app –template typescript
Directory after installation