Reactjs.org: Add componentDidCatch to React.Component page

Created on 10 Oct 2017  路  10Comments  路  Source: reactjs/reactjs.org

beginner good first issue in-progress documentation

All 10 comments

Can I try this? I really love this newly brought feature in React16! :)

Sure! This issue is all yours! 馃槃

I've added an "in-progress" label so that others will know not to start work on the issue. If you change your mind about the issue, no worries! Just let me know so that I can remove the label and free it up for someone else to claim.

Cheers!

@bvaughn Hi, thanks for giving me this opportunity. I've added all the necessary document. But right now I'm having a problem on referencing that blog post in the document markdown. Could you please help me with that?

This is how I tried but it redirects to the bottom of the new page.

For more details, check [*Error Handling in React 16*](../blog/2017/07/26/error-handling-in-react-16.html).

You should be able to link to /blog/2017/07/26/error-handling-in-react-16.html (no leading "../")

Thanks Brian. :smile:

Closed via #136
Thanks!

I would like to see this expanded to include better docs about info. Came here through a trail from facebook/react#10461 - decompose info parameter.

I would do it but the only part I am aware of is componentStack. Are there more keys?

componentStack is the only current key.

This is mentioned here:
https://reactjs.org/docs/error-boundaries.html#componentdidcatch-parameters

But yea, we should either cross-link or expand in the Component API page too.

What future keys do you plan to add to info?

No plans / unknown

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gaearon picture gaearon  路  4Comments

gaearon picture gaearon  路  6Comments

trungdq88 picture trungdq88  路  3Comments

gaearon picture gaearon  路  4Comments

ahtee picture ahtee  路  4Comments