What is the difference between errorElement and ErrorBoundary? #11456
Unanswered
ondrejsevcik
asked this question in
Q&A
Replies: 1 comment 2 replies
-
As for when to choose, it really depends on how you reference your components. The nice thing about elements, is that you can pass in props that React Router doesn't know about, including children. This is essentially the same as |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to understand what is the difference between
errorElement
andErrorBoundary
props on a route definition.The official docs does not help much.
When should I choose
errorElement
and whenErrorBoundary
?Thank you
Beta Was this translation helpful? Give feedback.
All reactions