# Setup React

This lab requires `React` and `create-react-app` to build the app.

## What is React?

React is a UI JavaScript library by Facebook for building efficient user interfaces and Single Page Applications. With React, you can build reusable frontend UI components in your app.

## Install create-react-app

Facebook has a command line tool, `create-react-app` that can scaffold a progressive web app out of the box in less than a minute. Let's install the `create-react-app` tool globally using npm:

```
npm install -g create-react-app
```

This will install the `create-react-app` command line tool, which will make it easy to initialize your app with React.

## Provision your app

Run the `create-react-app` command via the command line.

```
create-react-app miniflix
```

Navigate to the **miniflix** directory via the command line.

```
cd miniflix
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cloudinary.gitbook.io/build-a-mini-netflix/build-a-mini-netflix-with-cloudinary/get-set-up.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
