TypeScript x React demo 使用 create-react-app 创建 react + ts 应用 npx create-react-app my-app --typescript cd my-app yarn start 下载 yarn install 运行 yarn start