Skip to content

Commit

Permalink
docs: code reviewed
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli committed Oct 26, 2023
1 parent 7eb74c8 commit 5e9075c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/docs/react/AsyncBoundary.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const Example = () => (
onError={(error) => console.log(error)}
>
<Children />
</AsyncBoundary>
</AsyncBoundary.CSROnly>
)
```

Expand All @@ -69,7 +69,7 @@ we don't need to make unncessary code to wrap it if we use withAsyncBoundary lik
withAsyncBoundary's 2nd parameter is props of `<AsyncBoundary/>` without children

```tsx /withAsyncBoundary/
import { AsyncBoundary } from '@suspensive/react'
import { withAsyncBoundary } from '@suspensive/react'

const Example = withAsyncBoundary(
function Component() {
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/docs/react/AsyncBoundary.ko.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Example = () => (
onError={(error) => console.log(error)}
>
<Children />
</AsyncBoundary>
</AsyncBoundary.CSROnly>
)
```

Expand All @@ -71,7 +71,7 @@ withAsyncBoundary를 사용하면 컴포넌트를 `<AsyncBoundary/>`로 쉽게
withAsyncBoundary의 두 번째 인자는 children이 없는 `<AsyncBoundary/>`의 props입니다.

```tsx /withAsyncBoundary/
import { AsyncBoundary } from '@suspensive/react'
import { withAsyncBoundary } from '@suspensive/react'

const Example = withAsyncBoundary(
function Component() {
Expand Down
2 changes: 2 additions & 0 deletions docs/src/pages/docs/react/ErrorBoundaryGroup.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ const Example = () => (
If you use useErrorBoundaryGroup, you can get a function to reset `<ErrorBoundary/>`s in `<ErrorBoundaryGroup/>`.

```tsx /useErrorBoundaryGroup/
import { useErrorBoundaryGroup } from '@suspensive/react'

const Example = () => {
const group = useErrorBoundaryGroup()

Expand Down
2 changes: 2 additions & 0 deletions docs/src/pages/docs/react/ErrorBoundaryGroup.ko.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ const Example = () => (
useErrorBoundaryGroup을 사용하면 `<ErrorBoundaryGroup/>`내의 `<ErrorBoundary/>`들을 reset하는 함수를 얻을 수 있습니다.

```tsx /useErrorBoundaryGroup/
import { useErrorBoundaryGroup } from '@suspensive/react'

const Example = () => {
const group = useErrorBoundaryGroup()

Expand Down

0 comments on commit 5e9075c

Please sign in to comment.