ui-bug-tracker

1.0.1 • Public • Published

A comprehensive bug tracking tool tailored for React, ensuring that no UI bug goes unnoticed!

Development

  • Install Dependency
npm i ui-bug-tracker

Example Setup

React

import BugReporter from "ui-bug-tracker";

// pass server endpoint where you need to store the bug report
const report = new BugReporter("https://your-api-endpoint.com/report");

// Set up the error listener when the script loads
const cleanupErrorListener = bugReporter.setupErrorListener();

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>
);

// Clean up the error listener when the component unmounts
if (cleanupErrorListener) {
  window.addEventListener("beforeunload", cleanupErrorListener);
}

React Native

import BugReporter from "ui-bug-tracker";

// pass server endpoint where you need to store the bug report
const bugReporter = new BugReporter(
  "https://your-api-endpoint.com/report",
  ErrorUtils
);

// Set up the error listener when the script loads
bugReporter.setupErrorListener();

AppRegistry.registerComponent(appName, () => App);

/ui-bug-tracker/

    Package Sidebar

    Install

    npm i ui-bug-tracker

    Weekly Downloads

    2

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    9.92 kB

    Total Files

    8

    Last publish

    Collaborators

    • shubham98