Freshpaint
Search…
Autocapture + React
If you are not using React, you can skip to the next part of the quickstart guide.
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 babel plugin.

Installation

1
npm i @freshpaint/babel-plugin-annotate-react --save
Copied!
If you use yarn:
1
yarn add @freshpaint/babel-plugin-annotate-react
Copied!

Add the plugin to your babel config:

1
plugins: [
2
"@freshpaint/babel-plugin-annotate-react"
3
]
Copied!
Last modified 10mo ago
Copy link
Contents
Installation