Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 732 Bytes

README-zh_CN.md

File metadata and controls

32 lines (24 loc) · 732 Bytes

@ohbug/react

npm npm bundle size

English | 简体中文

安装

pnpm instal @ohbug/browser @ohbug/react

使用

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