MCPcopy
hub / github.com/bvaughn/react-error-boundary / render

Function render

lib/components/ErrorBoundary.test.tsx:70–78  ·  view source on GitHub ↗
(props: Omit<ErrorBoundaryPropsWithFallback, "fallback">)

Source from the content-addressed store, hash-verified

68 });
69
70 function render(props: Omit<ErrorBoundaryPropsWithFallback, "fallback">) {
71 act(() => {
72 root.render(
73 <ErrorBoundary {...props} fallback="Error" ref={errorBoundaryRef}>
74 <MaybeThrows>Content</MaybeThrows>
75 </ErrorBoundary>,
76 );
77 });
78 }
79
80 it('should call "onError" prop if one is provided', () => {
81 shouldThrow = true;

Callers 1

Calls 1

renderMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…