btholt / btholt/complete-intro-to-react-v8

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

Open
#17 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.8k
Forks
199
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the root.render example from the Error Boundaries section and inspect why ErrorBoundary does not catch the reported error. Done means the example catches errors as described; the issue names no file or test, so locate the relevant course entry point first.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.