Cross-platform Desktop Application Development: Electron, Node, NW.js, and React
by Dmitry Sheiko
Connecting to the store
We have action creators and we have Reducers and, now, we are about to make them available across the application. As you can remember from Chapter 5, Creating a Screen Capturer with NW.js, React, and Redux: Planning, Design, and Development, the module redux provides the function createStore, which takes in combined reducers to produce the store. The module react-redux exports the provider higher-order component that accepts the store with the props and makes it available through connect across the inner component tree. The function createStore accepts middleware that is combined with the compose function of redux. As we already discussed in this application, we need asynchronous actions. Here, we can use the redux-thunk ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access