React, but with built-in global state management.
Adds resetGlobal
as a helper function. #2
Adds setGlobal
as a second parameter to the withGlobal
HOC. #13
const GlobalComponent = withGlobal(
(global, props) => null,
(setGlobal, props) => null
)(LocalComponent);
This is analogous to state
/dispatch
and mapStateToProps
/mapDispatchToProps
as used in the react-redux
package.
Unit test for createReducer
added.
Unit tests for component methods prepped.
Unit tests for helper functions prepped.