Let's go do ErrorBoundary.tsx now

// add types and return types to parameters
componentDidCatch(error: Error, info: ErrorInfo): void {}
  • Pretty straightforward here. Just need to type some parameters that TS wouldn't be able to infer. Everything else it can infer.