Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tshaddox
on Sept 20, 2022
|
parent
|
context
|
favorite
| on:
React I love you, but you're bringing me down
You still need to use class components for error boundaries.
https://reactjs.org/docs/error-boundaries.html
ajkjk
on Sept 20, 2022
[β]
Yeah, this feels like a weird oversight.
tshaddox
on Sept 20, 2022
|
parent
[β]
A bit weird, although itβs not clear how they would do it without class components. I guess it would probably look something like React.forwardRef.
ajkjk
on Sept 20, 2022
|
root
|
parent
[β]
They could provide a <ErrorBoundary> component as a built-in that just does what the current one does, but is implemented by the library.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://reactjs.org/docs/error-boundaries.html