Skip to content
masterclass Buddy

React Testing Library · Function

act

act is a small wrapper around React's act function. It forwards the call when the installed React version supports act.

Last updated

Syntax

act(callback)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • render
  • renderHook
  • fireEvent
  • userEvent

Source: API | Testing Library. Checked 2026-11-03.