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 ...