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