We use cookies to ensure you get the best user experience on our website.Find Out More

React Bug Reporting & Console Log Tracker SDK

Streamline Visual Bug & Exception Tracking in React Apps

React applications often hide complex component states, asynchronous fetch events, and runtime errors. Shakebug captures annotated visual screenshots and records console warnings and failed API endpoints automatically.

What Is Shakebug for React & Next.js Applications?

Shakebug for React and Next.js is an npm-distributed visual bug reporting and runtime diagnostic SDK (@softnoesis/shakebug-js) built to close the gap between visual QA tickets and JavaScript exception monitoring. By mounting a single <Shakebug /> component at the root of your React, Next.js, or Vite application, testers and end users can report UI defects using the floating action trigger or Ctrl+Alt+K / Cmd+Alt+K shortcuts while automatically attaching React Error Boundary traces, console.warn / console.error outputs, Axios/Fetch payloads, browser viewport details, and user identity metadata. Teams can log custom actions via addEventKey() and identify signed-in users with setcustomUser(), routing complete reproduction packages directly to Jira, GitHub, Linear, ClickUp, or Slack without paying per-seat telemetry fees.

Framework-Specific React Bug Tracking

Direct integration with React's core lifecycle APIs and hooks for front-end debugging.

Error Boundary Hooks

Visual React Component Crash Capture

Shakebug integrates with React's custom Error Boundary components to capture JS execution failures, protecting your application lifecycle while forwarding stack traces to developers.

Capture React component level exceptions
API Request Monitoring

Track Axios, Fetch, & XHR Payloads

Log all asynchronous API requests and server-side responses made from your React views. Quickly check latency, status headers, and request errors inside the reporting board.

Axios and Fetch logger in React web app
Chronological Timeline

Console Redirects & State Logs

Compile standard console.log inputs and custom Redux actions chronologically up to the point of failure, showing developers the exact path taken to hit the bug.

Console logs and React state details in dashboard

Quickstart: Add @softnoesis/shakebug-js to React or Next.js

Install the official npm package, import the scoped CSS once at your entry point, and wrap your app root or React Error Boundary.

npm install @softnoesis/shakebug-js

// App.tsx / layout.tsx
import '@softnoesis/shakebug-js/dist/index.css';
import { Shakebug, setcustomUser, addEventKey } from '@softnoesis/shakebug-js';

export function AppRoot({ children }) {
  setcustomUser({ id: 'usr_482', email: 'qa@company.com', country: 'US' });
  addEventKey('Checkout Step', 'Clicked Pay Now');

  return (
    <>
      <Shakebug
        appKey="YOUR_APP_KEY"
        bundleId="YOUR_WEBSITE_URL"
        showFloatingButton={true}
      />
      {children}
    </>
  );
}
React Capability What Shakebug Captures
Component Crash & Source Maps React Error Boundary & window.onerror stack traces mapped back to clean JSX lines via Webpack/Vite source maps.
API & Async Failure Context Axios, Fetch, and XHR status codes alongside console warnings and custom Redux/state breadcrumbs.
Visual QA & Tracker Sync Annotated DOM screenshots + user metadata pushed straight to Jira, GitHub Issues, Linear, or Slack.

What Our Customers Say About ShakeBug

Frequently Asked Questions

How does Shakebug catch exceptions in React applications?

Shakebug captures component-level crashes by hooking into React Error Boundaries and global window error events, providing clean stack traces with component path parameters.

Can we log React state or Redux store changes?

Yes. You can pass custom logs or state snapshots programmatically, or register a custom Redux middleware to log actions chronologically alongside bug reports.

Does it support tracking console warnings and errors?

Yes. Shakebug automatically intercepts standard console.warn and console.error calls, attaching them to tickets so developers see runtime issues immediately.

How do source maps work with React minified code?

You can configure your CI/CD pipeline to upload React Webpack or Vite build source maps, allowing Shakebug to translate minified javascript traces back to clean JSX lines.

Streamline Your React Bug Reporting Today

Sign Up Free

No credit card required