Click in order · JavaScript and React course · Module 13: Testing React

act() with renderHook syntax

Arrange the elements of the act() syntax with renderHook in the correct order:

Items to click

  • (() =>
  • act
  • )
  • result.current
  • .increment()

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