安装create-react-app
npm install -g create-react-app
创建我们的新项目
create-react-app my-app --scripts-version react-scripts-ts
react-scripts-ts是一组调整,用于采用标准的create-react-app项目管道并将TypeScript引入混合。
npm install -g create-react-app
create-react-app my-app --scripts-version react-scripts-ts
react-scripts-ts是一组调整,用于采用标准的create-react-app项目管道并将TypeScript引入混合。
本文标题:使用React连接TypeScript
本文链接:https://www.haomeiwen.com/subject/wjcjkqtx.html
网友评论