---
url: /sync/demos/react.md
description: Basic example of an Electric app using React.
---

# React

# {{ $ frontmatter.title }}

{{ $ frontmatter.description }}

## Basic example using React

This is our simplest example of a web app using Electric with [React](https://react.dev) and [Vite](https://vite.dev).

The Electric-specific code is in [`./src/Example.tsx`](https://github.com/electric-sql/electric/blob/main/examples/react/src/Example.tsx):

<<< @../../examples/react/src/Example.tsx{tsx}
