Skip to content

Instantly share code, notes, and snippets.

@nightspirit
Created April 15, 2018 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nightspirit/079b5d28ca1c1f635078a00ed1e47502 to your computer and use it in GitHub Desktop.
Save nightspirit/079b5d28ca1c1f635078a00ed1e47502 to your computer and use it in GitHub Desktop.
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