import React from'react';import ReactDOM from'react-dom';import'./index.css';import App from'./App';import reportWebVitals from'./reportWebVitals';import'./lib/flexible'// 分辨率兼容import store from'./redux/store'import{Provider}from'react-redux'//
ReactDOM.render(<React.StrictMode><Provider store={store}>//<App /></Provider>//</React.StrictMode>,
document.getElementById('root'));// If you want to start measuring performance in your app, pass a function// to log results (for example: reportWebVitals(console.log))// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitalsreportWebVitals();
安装npm i reduxnpm i react-reduxactions.jsimport {UPDATEUSERINFO} from "./constant";export const updateUser =data=>({type:UPDATEUSERINFO,data})reducers.js/* 该文件用于汇总所有的reducer为一个总的reducer*/import {combineReducers} from 'redux'import {UPDATE