mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 12:57:46 +00:00
We renamed the GitHub repository from `zeit/now` to `vercel/vercel` so this PR updates all references to the repo URL. There were also a few remaining references to Now CLI that have been updated to Vercel CLI.
30 lines
1.3 KiB
Markdown
30 lines
1.3 KiB
Markdown

|
|
|
|
# React Example
|
|
|
|
This directory is a brief example of a [React](https://reactjs.org/) app with [Serverless Functions](https://vercel.com/docs/v2/serverless-functions/introduction) that can be deployed with Vercel and zero configuration.
|
|
|
|
## Deploy Your Own
|
|
|
|
Deploy your own React project, along with Serverless Functions, with Vercel.
|
|
|
|
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/create-react-app-functions)
|
|
|
|
_Live Example: https://create-react-app.now-examples.now.sh/_
|
|
|
|
### How We Created This Example
|
|
|
|
To get started with React, along with [Serverless Functions](https://vercel.com/docs/v2/serverless-functions/introduction), with Vercel, you can use the [Create-React-App CLI](https://reactjs.org/docs/create-a-new-react-app.html#create-react-app) to initialize the project:
|
|
|
|
```shell
|
|
$ npx create-react-app my-app
|
|
```
|
|
|
|
### Deploying From Your Terminal
|
|
|
|
You can deploy your new React project, along with [Serverless Functions](https://vercel.com/docs/v2/serverless-functions/introduction), with a single command from your terminal using [Vercel CLI](https://vercel.com/download):
|
|
|
|
```shell
|
|
$ vercel
|
|
```
|