搭建React+TypeScript项目

create-react-app构建TypeScript项目

create-react-app my-app --template typescript

然后进入项目并启动

cd my-app/
npm run start

项目启动成功,浏览器默认打开http://localhost:3000/

持续更新中......

砥砺前行
原文地址:https://www.cnblogs.com/lhongsen/p/14702348.html