Created
April 15, 2018 02:14
-
-
Save nightspirit/079b5d28ca1c1f635078a00ed1e47502 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { withCounter } from './context' | |
const Display = ({ counter }) => <h5 className="card-title text-center">{counter.value}</h5> | |
const CounterDisplay = withCounter(Display) | |
export default CounterDisplay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment