Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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