-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请教一下,关于redux的使用的小问题 #41
Comments
我这样做,只能拿到actions,拿不到state映射过来的属性,不知道在哪里拿。。。 |
贴上我的部分代码,看了你应该就懂了
container.js
|
哦哦,好像有点懂了,我理解实在是有点不足 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我一直对redux的理解不够,请教一个很菜的问题,一直苦于没人帮助。
开始一直按照你这样的封层封装,没有什么问题,但是我现在有这样的需求:
同一个路由下面,有两个需要结合redux的组件,
。
我想把Tools组件放在CardManagement下面,怎么做?我按照实例那样,已经把Tools的reducer这些封装好了,我直接引入的container到CardManagement组件下面
。
使用
<Tools/>
这样的格式放在组件里面,reducer并不能用,该怎么做呢?需要injectReducer吗?那样的话,怎么传store?作为参数?,还是说这样的做法根本就不对?想错了?The text was updated successfully, but these errors were encountered: