import React, { Component, PropTypes } from 'react'; export default class Counter extends Component { static propTypes = { increment: PropTypes.func.isRequired, incrementIfOdd: PropTypes.func.isRequired, decrement: PropTypes.func.isRequired, counter: PropTypes.number.isRequired }; render() { const { increment, incrementIfOdd, decrement, counter } = this.props; return (
Clicked: {counter} times {' '} {' '} {' '}
); } }