From 4f523fce4452e7124a7c5d806aa0df9902436ea9 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Tue, 10 Dec 2024 19:30:50 -0800 Subject: [PATCH] Update 2024-12-10-electric-beta-release.md --- website/blog/posts/2024-12-10-electric-beta-release.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/blog/posts/2024-12-10-electric-beta-release.md b/website/blog/posts/2024-12-10-electric-beta-release.md index cc39508265..fdda84062a 100644 --- a/website/blog/posts/2024-12-10-electric-beta-release.md +++ b/website/blog/posts/2024-12-10-electric-beta-release.md @@ -157,7 +157,7 @@ const MyComponent = () => { }, []) return ( - + ) } ``` @@ -168,7 +168,7 @@ 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' @@ -176,7 +176,7 @@ const MyComponent = () => { }) return ( - + ) } ```