@gpt-flow/react
v0.0.20
Published
An error-capturing component that captures errors and reports them to you as a human would.
Downloads
14
Readme
@gpt-flow/react
An error-capturing component that captures errors and reports them to you as a human would.
Installation
Install the package via npm:
npm install @gpt-flow/react
Usage
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>
);
Full Example
https://github.com/GPT-Flow/examples/tree/main/react