Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 743 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 743 Bytes

@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>
  )
}