import { connect } from 'react-redux' import Clock from './clock' import Counter from './counter' function Examples ({ lastUpdate, light }) { return (
) } function mapStateToProps (state) { const { lastUpdate, light } = state return { lastUpdate, light } } export default connect(mapStateToProps)(Examples)