HackerTrans
トップ新着トレンドコメント過去質問紹介求人

sprokuski

no profile record

コメント

sprokuski
·7 年前·議論
I think you can make that first useEffect block fire by passing in an empty array as your params. This should run the code block on mount. To run a function on unmount, return it from the same useEffect with the empty array params.