Cross-platform Desktop Application Development: Electron, Node, NW.js, and React
by Dmitry Sheiko
Tooling Redux
In Chapter 5, Creating a Screen Capturer with NW.js, React and Redux Planning, Design and Development, you have learned the essentials of the Redux state container. We built a functional prototype using Redux. However, when building your own application, you may need to know when and what is happening to the state tree exactly.
Fortunately, Redux accepts middleware modules to deal with cross-cutting concerns. The concept is pretty similar to the one of the Express framework. We can extend Redux by hooking third-party modules on the event when an action gets dispatched but hasn't yet reached the reducers. It doesn't make much sense to write a custom logger as many are already available (http://bit.ly/2qINXML). For example, for ...
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