import * as React from 'react'; import { Link, RouteComponentProps } from 'react-router-dom'; import { connect } from 'react-redux'; import { ApplicationState } from '../store'; import * as CounterStore from '../store/Counter'; import * as WeatherForecasts from '../store/WeatherForecasts'; type CounterProps = CounterStore.CounterState & typeof CounterStore.actionCreators; class Counter extends React.Component { public render() { return

Counter

This is a simple example of a React component.

Current count: { this.props.count }

; } } // Wire up the React component to the Redux store export default connect>( (state: ApplicationState) => state.counter, // Selects which state properties are merged into the component's props CounterStore.actionCreators // Selects which action creators are merged into the component's props )(Counter);