Skip to content

Latest commit

 

History

History

ohbug-react

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@ohbug/react

npm npm bundle size

English | 简体中文

Installation

pnpm instal @ohbug/browser @ohbug/react

Usage

import React from 'react'
import Ohbug from '@ohbug/browser'
import { OhbugErrorBoundary } from '@ohbug/react'

const client = Ohbug.setup({ apiKey: 'YOUR_API_KEY' })

function App() {
  return (
    <div className="App">
      <OhbugErrorBoundary client={client}>
        <HelloWorld />
      </OhbugErrorBoundary>
    </div>
  )
}