Last active
December 26, 2017 23:34
-
-
Save rafaellucio/66a8d3950ade869f7050ea4b12809767 to your computer and use it in GitHub Desktop.
This file contains hidden or 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' | |
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