React Effect HooksReact useEffect()React useLayoutEffect()React useEvent() Dependency to do not use stale propsHooks FAQ - ReactHooks are a new addition in React 16.8. They let you use state and other React features without writing a class. This page answers some of the frequently asked questions about Hooks.https://reactjs.org/docs/hooks-faq.html#is-it-safe-to-omit-functions-from-the-list-of-dependencies