useMemo, useEffect, useCallback

Does this three hook(useMemo, useEffect, useCallback ) will be return and execute in the first rendering of the component

hello and welcome to fcc forum :slight_smile:

  • would be based on “dependency array” that you passed in for them

happy coding :slight_smile:

They all run on the initial render. You only control if/when they re-run (every render or when the dependencies change).

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.