website/src/partials/home-cta.md
You can start by adopting Electric incrementally, <span class="no-wrap"> one data fetch</span> <span class="no-wrap"> at a time</span>. <span class="hidden-sm"> <br class="hidden-md" /> Using our <a href="/docs/api/http"> HTTP API</a>, <span class="no-wrap-sm"> <a href="/docs/api/clients/typescript"> client libraries</a> and <a href="/docs/integrations/react"> framework hooks</a></span>. </span>
import { useShape } from '@electric-sql/react'
const Component = () => {
const { data } = useShape({
url: `${BASE_URL}/v1/shape`,
params: {
table: `items`
}
})
return (
<pre>{ JSON.stringify(data) }<pre>
)
}
And you can level-up <span class="hidden-sm"> all the way</span> to syncing into a local embedded <span class="no-wrap"> PGlite database</span>. <span class="no-wrap-md hidden-sm"> With <span class="no-wrap"> built-in persistence</span> and <span class="no-wrap"> live reactivity</span>.</span>
<<< @/src/partials/sync-into-pglite.tsx
<div class="actions cta-actions"> <div class="action"> <VPButton href="/docs/intro" text="Learn more" theme="brand" /> </div> <div class="action"> <VPButton href="https://github.com/electric-sql/electric" target="_blank" text="Star on GitHub" theme="alt" /> </div> </div>