Skip to content

Instantly share code, notes, and snippets.

Created Dec 17, 2019
What would you like to do?
import useCounter from "./useCounter";
const CompOne = ({ initCounter }) => {
const [count, increase] = useCounter(initCounter);
return (
Count: {count}
<button onClick={increase}>+</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment