基本发发依赖
redux
redux-thunk 处理异步中间件
react-redux 处理当前显示组件与容器组件的连接
yarn add redux redux-thunk react-redux -D
index.jsx
import React from "react";
import ReactDOM from "react-dom";
function App() {
return <div></div>;
}
ReactDOM.render(<App />, document.getElementById("root"));