Connected component not receiving store props n Redux

前端 未结 2 1844
感情败类
感情败类 2021-01-19 17:51

I was doing a bit of refactoring and tried connecting a higher level component to redux using connect() but the component I\'m connecting keeps giving me empty

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-19 17:59

    The reason your props in Login component are empty is because you are not actually using the connected Login container, As you have mentions its in containers/login

    So in your App.js change the import of login from ./presentation/login to

    import Login from '/path/to/containers/Login';

提交回复
热议问题