React Testing Library · Function
prettyDOM
render mounts a React element into a container attached to document.body. It returns queries and helpers for inspecting, updating, unmounting, and comparing the rendered output.
Last updated
Syntax
function render(ui: React.ReactElement<any>, options?: RenderOptions): RenderResultIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
screen.debugprettyDOMrerenderunmountasFragmentcleanuprenderHookconfigure