javascript - How to get the data returned in the reducer in the component?
世界只因有你
世界只因有你 2017-06-12 09:22:17
0
1
655

This is my reducer. After receiving the action, it will return an object. I have consoled this object and it exists.

This is the method of connecting the first parameter. The state of the console is only the requestUserInfo function, and there is no data returned in the reducer. Did I write something wrong somewhere? Or maybe I understand it wrong at all?

世界只因有你
世界只因有你

reply all(1)
扔个三星炸死你

You can use the container provided by flux to bind the store to your component, or subscribe to the store's event listener. Reference

https://github.com/facebook/flux/tree/master/examples/flux-todomvc

, it is recommended to understand its thinking before writing code

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template