using typescript with create-react-app code example Example: npx react typescript npx create-react-app my-app --template typescript