Put in order · JavaScript and React course · Module 8: Advanced React Patterns
useMemo Syntax
Arrange the useMemo hook syntax with a dependency array:
Items to put in order
- useMemo(
- () => computeValue(a, b),
- [a, b]
- );
- const result =
You can check the correct answer by solving this task in the CodeWorlds game.