Reactn Versions Save

React, but with built-in global state management.

v0.1.1

5 years ago

Features

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

Bug Fix

  • Fixes unnecessary re-renders that were occurring on some occasions. #21

Miscellaneous

  • Unit test for createReducer added.

  • Unit tests for component methods prepped.

  • Unit tests for helper functions prepped.