Click in order · JavaScript and React course · Module 9: Modern React Hooks

useMemo Syntax

Arrange the syntax of the useMemo hook for memoizing expensive computations:

Items to click

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

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