Skip to content

Instantly share code, notes, and snippets.

@rafaellucio
Last active December 26, 2017 23:34
Show Gist options
  • Save rafaellucio/66a8d3950ade869f7050ea4b12809767 to your computer and use it in GitHub Desktop.
Save rafaellucio/66a8d3950ade869f7050ea4b12809767 to your computer and use it in GitHub Desktop.
import React from 'react'
const Counter = props => (
<div>
<h2>Counter</h2>
<div>
<button onClick={props.decrement}>-</button>
<span>{props.count}</span>
<button onClick={props.increment}>+</button>
</div>
</div>
)
export default Counter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment