Put in order · JavaScript and React course · Module 5: useEffect and Custom Hooks

useMemo Syntax with a Computation Function

Arrange the correct useMemo syntax for memoizing computations:

Items to put in order

  • [data]
  • expensiveCalc(data),
  • const result = useMemo(() =>
  • );

You can check the correct answer by solving this task in the CodeWorlds game.