MCPcopy Create free account
hub / github.com/dailydotdev/apps / render

Method render

packages/shared/src/components/ErrorBoundary.tsx:67–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 }
66
67 render(): ReactNode {
68 const { hasError } = this.state;
69 const { children, fallback } = this.props;
70
71 if (hasError) {
72 if (fallback) {
73 return fallback;
74 }
75
76 return <NextError statusCode={0} />;
77 }
78
79 return children;
80 }
81}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected