What do error boundaries not catch?
0:11
Error boundaries do not catch errors inside event handlers, asynchronous code like setTimeout callbacks, server-side rendering, or errors thrown in the error boundary itself. Those must be handled with regular try-catch blocks.