MCPcopy Create free account
hub / github.com/code100x/daily-code / constructor

Method constructor

apps/web/components/ErrorBoundary.tsx:12–15  ·  view source on GitHub ↗
(props: ErrorBoundaryProps)

Source from the content-addressed store, hash-verified

10
11export class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
12 constructor(props: ErrorBoundaryProps) {
13 super(props);
14 this.state = { hasError: false };
15 }
16
17 static getDerivedStateFromError() {
18 // Update state so the next render will show the fallback UI.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected