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
10
10
import React from " react" ;
11
11
import * as Sentry from " @sentry/react" ;
12
12
13
- < Sentry .ErrorBoundary fallback= {" An error has occurred" }>
13
+ < Sentry .ErrorBoundary fallback= {< p > An error has occurred< / p > }>
14
14
< Example / >
15
15
< / Sentry .ErrorBoundary > ;
16
16
```
@@ -21,7 +21,7 @@ The Sentry Error Boundary is also available as a higher order component.
21
21
import React from " react" ;
22
22
import * as Sentry from " @sentry/react" ;
23
23
24
- Sentry .withErrorBoundary (Example, { fallback: " an error has occurred" });
24
+ Sentry .withErrorBoundary (Example, { fallback: < p > an error has occurred< / p > });
25
25
```
26
26
27
27
<Alert level = " warning" title = " Note" >
You can’t perform that action at this time.
0 commit comments