Skip to main content
See what's recently landed on the Neon backend: Object Storage, Functions, AI Gateway, and more
/Frameworks/React

Connect a React application to Neon

Set up a Neon project in seconds and connect from a React application

View as Markdown

React is an open-source JavaScript library for building component-based user interfaces.

Connect to Lakebase Postgres from the server side of a React application, never from the browser. The following React frameworks each have a guide for configuring a server-side connection.

React frameworks

Managed Better Auth

After you connect your database, add managed authentication with Managed Better Auth. Quick starts are available for these React frameworks:

For React Router, follow the React Auth quick start.

Next steps

  • Add Object Storage: S3-compatible file storage that branches with your database
  • Deploy a Function: Run backend compute next to your database, no separate hosting needed
  • Call an LLM with AI Gateway: Access foundation models from Anthropic, OpenAI, Google, and more with one credential
  • Realtime: Build realtime React apps on Neon with end-to-end reactivity and type safety

Need help?

Join our Discord Server to ask questions or see what others are doing with Neon. For paid plan support options, see Support.

Last updated on

Was this page helpful?
Edit on GitHub