基本发发依赖

redux
redux-thunk 处理异步中间件
react-redux 处理当前显示组件与容器组件的连接

  1. yarn add redux redux-thunk react-redux -D

index.jsx

  1. import React from "react";
  2. import ReactDOM from "react-dom";
  3. function App() {
  4. return <div></div>;
  5. }
  6. ReactDOM.render(<App />, document.getElementById("root"));