Ah... out of curiosity, what about React-Redux seems complex?
Quick summary:
- Wrap your component tree in <Provider store={store>
- For any component that needs to access data or dispatch actions, use `connect()(MyComponent)` to create a wrapped-up version.
- Write a function known as "mapStateToProps", and pass it as the first argument to `connect()`. It will be called every time an action is dispatched, and given the latest store state. Extract whatever pieces of data this component needs, return them, and they become props for the wrapped component.
Dan Abramov wrote a miniature version of `connect` , which shows the basic approach it uses: https://gist.github.com/gaearon/1d19088790e70ac32ea636c025ba...