Skip to content

Instantly share code, notes, and snippets.

@chentsulin
Created November 5, 2018 15:21
Show Gist options
  • Save chentsulin/6b07b2a16fb2304b5d50eb58552c35f7 to your computer and use it in GitHub Desktop.
Save chentsulin/6b07b2a16fb2304b5d50eb58552c35f7 to your computer and use it in GitHub Desktop.
init counter
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