简体   繁体   English

关于使用 TypeScript 安装 Create React App 项目的方法

[英]About the ways that install Create React App project with TypeScript

A book I got a year ago said...我一年前买的一本书说...

npx create-react-app XXX --typescript

Current CRA Docs is saying...当前的 CRA 文档说...

npx create-react-app XXX --template typescript

Each result seemed the same.每个结果似乎都一样。 Something different or the former is just shortened way?不同的东西或前者只是缩短的方式?

Thank you for your help:)谢谢您的帮助:)

--typescript option has been deprecated. --typescript选项已被弃用。 So use the --template所以使用--template

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 create-react-app 安装 typescript + jest? - How to install typescript + jest with create-react-app? 在create-react-app中安装react项目时出现npm错误 - npm error when install react project in create-react-app 关于“create-react-app --template typescript”如何与 typescript-eslint 连接的困惑 - Confusion about how `create-react-app --template typescript` hooked up with typescript-eslint 当我安装 material-UI 时,由 create-react-app 构建的 React(打字稿版本)应用程序中断 - React (typescript version) app build by create-react-app breaks when I install material-UI 无法创建React typescript项目 - Unable to create React typescript project 编译 create-react-app 项目时 TypeScript React 项目不确定的错误 - TypeScript React project inconclusive bugs when compiling create-react-app project 尝试使用 expo 构建 create-react-app 项目,引发有关 react-native 的错误 - Trying to build a create-react-app project with expo, throws error about react-native 如何防止Create React App由于依赖项中包含ts文件而迫使我安装TypeScript - How to prevent Create React App from forcing me to install TypeScript because a dependency has a ts file in it 无法删除 React 项目文件夹和 npm install 和 create-react-app 的其他问题 - Unable to delete React project folder & other issue with npm install and create-react-app 我是否需要安装 @types/react 才能在 TypeScript 项目中使用 React? - Do I need to install @types/react to work with React in a TypeScript project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM