Autocapture + React
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
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"
]
PreviousInstalling the Freshpaint Javascript SDK with Server-Side Rendering (SSR) + ReactNextConfiguring a Destination
Last updated
Was this helpful?