close
Open weight models are particularly fast in the Neon AI Gateway thanks to optimizations like prompt caching. Free to run during beta
ImageImage
/Frameworks/React

Connect a React application to Neon

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

React by Facebook is an open-source front-end JavaScript library for building user interfaces based on components.

Lakebase Postgres should be accessed from the server side in React applications. Using the following React meta-frameworks, you can easily configure a server-side connection to a Lakebase Postgres database.

React Meta-Frameworks

Find detailed instructions for connecting to Neon from various React meta-frameworks.

Managed Better Auth

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

For React Router, follow the React Auth quick start.

Next steps

Need help?

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

Was this page helpful?
Edit on GitHub

On this page

Copy neon init command