Skip to content
masterclass Buddy

React Testing Library · Pipe

unmount

React Testing Library mounts React elements for tests and returns queries plus helpers for updating, inspecting, and removing them. It also provides cleanup, hook rendering, and configuration functions.

Last updated

Syntax

render(ui: React.ReactElement<any>, options?: RenderOptions): RenderResult

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

Subscribe
  • renderHook
  • cleanup
  • act
  • configure
  • screen
  • rerender
  • unmount
  • asFragment

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