BFE.dev
React Coding Questions16. useUpdateEffect()

16. useUpdateEffect()

ReactHooks
Share

  - accepted / - tried

Implement useUpdateEffect() that it works the same as useEffect() except that it skips running the callback on first render.

prev

Bugfree ordinary solution is better than buggy fancy ones.

Request SolutionAIPosts(89)

Try it out

Console