# REACT

This project is an example of how the SDK can be integrated with the React framework.
In order to install it and see the example, you will have to launch a series of commands that you will see below.

## Install dependencies

To install the necessary dependencies of React you have to launch in the command console:

```bash
npm i
```

## Copy SDK files

Copy ``assets`` folder, ``vd-selfie.es.js`` and ``vd-selfie.umd.js`` files from your own sdk folder to the static assets folder (/public) of your project. Please refer to [Veridas product documentation hub](https://docs.veridas.com/) for setup, configuration and integration examples

## Build

To build the project, launch the command:

```bash
npm run build
```

This command stores the files needed to view the demo in the `build` folder.

## Development Server

In the project directory, you can run the following command on the react_alive folder:

```bash
npm start
```

Open [https://localhost:3000](https://localhost:3000) to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

For more information about the framework visit this [link](https://es.reactjs.org/docs/getting-started.html)