Created
November 5, 2018 15:21
-
-
Save chentsulin/6b07b2a16fb2304b5d50eb58552c35f7 to your computer and use it in GitHub Desktop.
init counter
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
const Counter = ({ defaultValue }) => { | |
return ( | |
<> | |
<div>{defaultValue}</div> | |
<button>+</button> | |
</> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment