# Autocapture + React

{% hint style="info" %}
If you are not using React, you can skip to the next part of the quickstart guide.
{% endhint %}

The data we autocapture is based on the current state of the elements on your webpage. With React, a lot of useful information is lost during the compilation process, making the data available on the elements less readable and less useful. You can preserve some of the context from your original React components by using the [Annotate React](https://github.com/freshpaint-io/freshpaint-babel-plugin-annotate-react) babel plugin.

### Installation

```
npm i @freshpaint/babel-plugin-annotate-react --save
```

If you use yarn:

```
yarn add @freshpaint/babel-plugin-annotate-react
```

#### Add the plugin to your babel config:

```
plugins: [
  "@freshpaint/babel-plugin-annotate-react"
]
```


---

# 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://documentation.freshpaint.io/readme/guides/quickstart/autocapture-+-react.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.
