Instantly share code, notes, and snippets.

Embed
What would you like to do?
const mapStateToProps = state => {
const { someStore: { someProperty } } = state
const somePropertyPlusOne = someProperty + 1
return {
somePropertyPlusOne
}
}
class MyContainer extends Component {
// ...
}
export default connect(mapStateToProps)(MyContainer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment