# yFiles React Process Mining Component: Quick Start

Prepare a React project to use the yFiles React Process Mining component.

Prerequisite: Node.js ≥22 and npm. Stop if either is missing or any command fails.

## 1. Get yFiles for HTML

If the project already depends on `@yfiles/yfiles`, skip this step. Otherwise, run:
```bash
npx -y yfiles-dev-suite login
npx -y yfiles-dev-suite download-yfiles
```

Install the downloaded evaluation package, replacing the placeholders with the reported path and version, e.g.:
```bash
npm i yfiles-for-HTML-Complete-3.1.0.1-Evaluation/lib/yfiles-31.0.1+eval.tgz
```

Note: If there is no `package.json` in this workspace, run `npm init -y` first.

## 2. Install the component

```bash
npm i @yworks/react-yfiles-company-ownership
```

## 3. Install the component skill

```bash
npx skills add -y https://docs.yworks.com/react-yfiles-company-ownership/ai/skill.zip
```

**Stop execution here. Do not proceed further until the user has restarted the session.**