一 配置基础环境 1、使用CRA快速创建React项目: npx create-react-app react-redux 2、安装配套工具: cd react-redux , npm i @reduxjs/toolkit react-redux 3、启动项目:npm run start 二 sto