O'Reilly logo

Cross-platform Desktop Application Development: Electron, Node, NW.js, and React by Dmitry Sheiko

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introducing the application state

After this brief tour into Redux, we will apply the newly obtained knowledge in practice. First, we will install the redux package:

npm i -S redux 

We will also use the additional helper library redux-act (https://github.com/pauldijou/redux-act) to simplify the declaration of action creators and reducers. By using this library, we can use the action creator functions as references within reducers, abandoning the switch( action.type ) construction in favor of a shorter map syntax:

npm i -S redux-act 

For screen capture, we should perform the following actions:

  • SET_ACTIVE_TAB: It receives the identifier of the selected tab
  • TOGGLE_RECORDING: It receives true when screencast recording starts and false when ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required