@gpt-flow/react

0.0.20 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @gpt-flow/react

Weekly Downloads

0

Version

0.0.20

License

MIT

Unpacked Size

76.1 kB

Total Files

7

Last publish

Collaborators

  • pembek
  • rvasqz86