How to Create & Deploy a React App to Vercel (original) (raw)

Create your React app and deploy it with Vercel.

Last updated on

August 18, 2023

Build, Deployment & Git


This guide will show you how to deploy an React site and get your domain set up.

React is a JavaScript library for building user interfaces. There are multiple ways to build a React site, including:

Vercel is a platform for deploying the fastest React sites. You can deploy your site with zero configuration to the best frontend infrastructure.

Vercel has integrations for GitHub, GitLab, and Bitbucket to enable CI/CD for your React site with zero configuration. Then, you can run automated tests for performance and reliability on every push. Pull and merge requests are deployed instantly to a unique URL, accessible to your entire team.

After deploying, your new React site will automatically be assigned a .vercel.app suffixed domain. You can then add a Custom Domain on your choice, either from a third-party or purchased through Vercel.

  1. Install the Vercel CLI and run vercel to deploy.
  2. Vercel will detect that you are using React and will enable the correct settings for your deployment.
  3. Your application is deployed! (e.g. create-react-template.vercel.app)
  4. Push your code to your git repository (GitHub, GitLab, BitBucket).
  5. Import your React project into Vercel.
  6. Vercel will detect that you are using React and will enable the correct settings for your deployment.
  7. Your application is deployed! (e.g. create-react-template.vercel.app)