@userbugreport/bugbutton-react

This is the user interface for User Bug Report, you can learn how to get started in our Docs.

Usage no npm install needed!

<script type="module">
  import userbugreportBugbuttonReact from 'https://cdn.skypack.dev/@userbugreport/bugbutton-react';
</script>

README

Intro

This is the user interface for User Bug Report, you can learn how to get started in our Docs.

Very Quick Getting Started

npm install @userbugreport/bugbutton-react
import { BugButton } from "@userbugreport/bugbutton-react";
<BugButton
  id="yourid"
  apikey="sample"
  onBeforeBugSubmitted={() => console.log("submitting")}
  onAfterBugSubmitted={() => console.log("submitted")}
  onBugError={(submission, error) => console.error(submission, error)}
/>;