Install and configure ProofConvert in 2 minutes
1npm install @proofconvert/reactWrap your application with the ProofConvertProvider. It will automatically load the SDK.
1// app/layout.tsx
2import { ProofConvertProvider } from '@proofconvert/react';
3
4export default function RootLayout({ children }) {
5 return (
6 <html lang="en">
7 <body>
8 <ProofConvertProvider
9 projectId="proj_..."
10 apiKey="pcv_..."
11 mode="development" // Optional: Remove in production
12 >
13 {children}
14 </ProofConvertProvider>
15 </body>
16 </html>
17 );
18}1// src/App.tsx
2import { ProofConvertProvider } from '@proofconvert/react';
3
4export default function App() {
5 return (
6 <ProofConvertProvider
7 projectId="proj_..."
8 apiKey="pcv_..."
9 mode="development"
10 >
11 <YourApp />
12 </ProofConvertProvider>
13 );
14}mode="development" when testing on localhost. This prevents test feedback from affecting your production analytics.Before using ProofConvert in your code, create a trigger in the Dashboard: