complete-intro-to-react-v8 icon indicating copy to clipboard operation
complete-intro-to-react-v8 copied to clipboard

Wrapping `<App />` around `<ErrorBoundary>`

Open dominik-selmeci opened this issue 2 years ago • 0 comments

Hi Brain! I love the React course! :)

One question in part Error Boundaries. When I try the ErrorBoundary as you suggested like this:

root.render(
  <ErrorBoundary>
    <App />
  </ErrorBoundary>
);

then it does not work. It doesn't catch any errors.

In DEV tools, there is only an uncaught Error:

image

dominik-selmeci avatar Nov 21 '22 14:11 dominik-selmeci