react-redux中reducers无法连接的情况

export default function userinfo   default必须写上

2:Cannot read property 'type' of undefined  前面可以找到,操作之后,反而找不到了

import logIn from '../../reducers/LOGIN'     import {logIn} from '../../reducers/LOGIN'

作为函数被引用是必须得带方括号的,组件才可以不带括号

猜你喜欢

转载自blog.csdn.net/qq_39047764/article/details/80997795