Skip to content

Commit 46ed86c

Browse files
fix(docs): missing semi (#728)
1 parent 1eb93ac commit 46ed86c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/concepts/control-flow/error-boundary.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ order: 5
77
When encountering an error, this component will render a fallback UI instead of the problematic child component(s).
88

99
```jsx
10-
import { ErrorBoundary } from "solid-js"
10+
import { ErrorBoundary } from "solid-js";
1111

1212
<ErrorBoundary fallback={(err) => <div>Error: {err.message}</div>}>
1313
<ProblematicComponent />
@@ -25,4 +25,4 @@ This prop accepts a function that receives the caught error as an argument, prov
2525
By wrapping parts of your application in `<ErrorBoundary>`, you can prevent the entire application from crashing when an error occurs due to a single component.
2626

2727
When an error is encountered, the `<ErrorBoundary>` component will catch the error and render the fallback UI instead of the problematic component(s).
28-
This way, even when a component fails, the user has a controlled UI response instead of a broken interface.
28+
This way, even when a component fails, the user has a controlled UI response instead of a broken interface.

0 commit comments

Comments
 (0)