Skip to content

Commit

Permalink
Update 2024-12-10-electric-beta-release.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews authored Dec 11, 2024
1 parent eeba768 commit 4f523fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/blog/posts/2024-12-10-electric-beta-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const MyComponent = () => {
}, [])

return (
<List items="items" />
<List items={ items } />
)
}
```
Expand All @@ -168,15 +168,15 @@ Swap it out for code like this (replacing the `fetch` in the `useEffect` with [`
import { useShape } from '@electric-sql/react'

const MyComponent = () => {
const { data } = useShape({
const { data: items } = useShape({
url: 'https://electric.example.com/v1/shapes',
params: {
table: 'items'
}
})

return (
<List items="data" />
<List items={ data } />
)
}
```
Expand Down

0 comments on commit 4f523fc

Please sign in to comment.