Initialize the React project to use the TS environment

Both methods have been abandoned

  1. create-react-app react-for-typescript --scripts-version=react-scripts-ts

  2. create-react-app my-app --template typescript


Install typescript using NPX create-react-app my-app –template typescript

Directory after installation