Created
December 17, 2019 10:16
Revisions
-
eldyvoon created this gist
Dec 17, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ import useCounter from "./useCounter"; const CompOne = ({ initCounter }) => { const [count, increase] = useCounter(initCounter); return ( <div> Count: {count} <button onClick={increase}>+</button> </div> ); };