Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
react context example
import React from 'react'
import { withCounter } from './context'
const IncBtn = ({ counter }) => <button type='button' className='btn btn-primary btn-block' onClick={}>+</button>
const CounterIncBtn = withCounter(IncBtn)
export default CounterIncBtn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment