Skip to content

Instantly share code, notes, and snippets.

@cpv123
Last active December 21, 2019 17:30
Show Gist options
  • Save cpv123/235e68c989422b6ecbeed5f6eaacfed3 to your computer and use it in GitHub Desktop.
Save cpv123/235e68c989422b6ecbeed5f6eaacfed3 to your computer and use it in GitHub Desktop.
const myReduxStore = Immutable.fromJS({
myNumbers: [1, 2, 3]
})
const mapStateToProps = state => ({
numbers: state.myNumbers.toJS()
})
export default connect(mapStateToProps)(NumbersComponent)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment