import React, { Component, PropTypes } from 'react'; class Counter extends Component { render() { const { startMonitoring, stopMonitoring, sendToMonitor, increment, decrement, counter, } = this.props; return (

Clicked: {counter} times {' '} {' '} {' '} {' '}

); } } Counter.propTypes = { startMonitoring: PropTypes.func.isRequired, stopMonitoring: PropTypes.func.isRequired, sendToMonitor: PropTypes.func.isRequired, increment: PropTypes.func.isRequired, decrement: PropTypes.func.isRequired, counter: PropTypes.number.isRequired, }; export default Counter;