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

About the ways that install Create React App project with TypeScript

我一年前得到的一本书说...

npx create-react-app XXX --typescript

当前的 CRA 文档说...

npx create-react-app XXX --template typescript

每个结果看起来都一样。 有什么不同或者前者只是缩短了方式?

感谢您的帮助:)

--typescript 选项已被弃用。所以使用 --template