File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/platforms/javascript/guides/react/components Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ The React SDK exports an error boundary component that leverages [React componen
1010import React from " react" ;
1111import * as Sentry from " @sentry/react" ;
1212
13- < Sentry .ErrorBoundary fallback= {" An error has occurred" }>
13+ < Sentry .ErrorBoundary fallback= {< p > An error has occurred< / p > }>
1414 < Example / >
1515< / Sentry .ErrorBoundary > ;
1616```
@@ -21,7 +21,7 @@ The Sentry Error Boundary is also available as a higher order component.
2121import React from " react" ;
2222import * as Sentry from " @sentry/react" ;
2323
24- Sentry .withErrorBoundary (Example, { fallback: " an error has occurred" });
24+ Sentry .withErrorBoundary (Example, { fallback: < p > an error has occurred< / p > });
2525```
2626
2727<Alert level = " warning" title = " Note" >
You can’t perform that action at this time.
0 commit comments