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

useEffect Syntax with Dependency Array

Arrange the correct useEffect syntax with a dependency array:

Items to put in order

  • [id]
  • );
  • { fetchData(id); },
  • useEffect(() =>

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