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.


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: [

Last updated