react/react library React

Classes

RenderResult Queries
The model returned from render, which includes all the ScopedQueries scoped to the container that the renderedElement was rendered within.

Functions

act(FutureOr<void> callback()) Future<void>
A test helper to apply pending React updates before making assertions.
render(ReactElement ui, {Node? container, Node? baseElement, bool hydrate = false, bool legacyRoot = true, dynamic wrapper, bool autoTearDown = true, void onDidTearDown()?}) RenderResult
Renders the ui element into the DOM, returning a RenderResult API that can be used to do things like RenderResult.rerender with different props, or to call a query function scoped within the container that was rendered into.