An error-capturing component that captures errors and reports them to you as a human would.
Install the package via npm:
npm install @gpt-flow/react
Wrap react component in GPT-Flow
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import GptFlow from '@gpt-flow/react';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<GptFlow
projectId="your-project-id"
publicKey="your-public-key"
projectUrl="your-project-url"
>
<App />
</GptFlow>
</React.StrictMode>
);