import React, { Component } from 'react' import { dispatch } from '@rematch/core' import { initStore } from '../shared/store' import withRematch from '../shared/utils/withRematch' import Header from '../shared/components/header' class Home extends Component { render () { return (

Counter

The count is {this.props.counter}


) } } const mapState = state => ({ counter: state.counter }) const mapDispatch = ({ counter: { increment, incrementAsync } }) => ({ increment: () => increment(1), incrementBy: amount => () => increment(amount), incrementAsync: () => incrementAsync(1) }) export default withRematch(initStore, mapState, mapDispatch)(Home)