Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Releases: CharlesStover/reactn

0.1.1

21 Nov 20:21
Compare
Choose a tag to compare

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.