Created
May 5, 2016 09:06
-
-
Save pjazdzewski1990/9a51f6b1b1b8739acc8f663233a7c69a to your computer and use it in GitHub Desktop.
This file contains 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
let Counter = ({counter, onIncrement, onDecrement}) => | |
(<div> | |
<div>{counter}</div> | |
<button onClick={onDecrement}>-</button> | |
<button onClick={onIncrement}>+</button> | |
</div>); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment