看了这个视频产生了一个疑问?
来源:10-2 章节总览

zippen
2022-03-25
如果同学们在使用create-react-app脚手架启动项目的时候,选择了redux,那么官方默认的redux架构就是RTK。
既然你说默认的框架就是RTK?那为啥我们之后还需要下载?我们之前也是用create-react-app脚手架创建的项目啊,不是默认包含了吗?
写回答
1回答
-
阿莱克斯刘
2022-03-26
但是我们的课程在一开始使用create-react-app启动项目的时候并没有选择没有安装redux,而redux是我们直到第7章才安装进去的。
如果想直接使用create-react-app在启动项目的时候安装Redux,那么需要在命令中换一下template的参数。
# Redux + Plain JS template npx create-react-app my-app --template redux # Redux + TypeScript template npx create-react-app my-app --template redux-typescript
更多信息请查看官方文档:https://redux.js.org/introduction/getting-started
00
相似问题