What problem does it solve?
It helps React developers capture and organize runtime errors in PostHog so issues are visible, actionable, and properly grouped instead of being lost or hard to debug.
Core Features & Use Cases
- PostHog React setup for error tracking: Install and initialize PostHog in a React app using environment-based configuration.
- Exception autocapture and manual capture: Enable global exception capture and capture errors at boundaries where they don’t naturally propagate.
- Source map upload guidance for correct stack traces: Ensure stack traces resolve to original code by uploading source maps.
Use case: When a component renders incorrectly and throws, this skill instructs how to capture the exception (globally and at the error boundary) and how to upload source maps so the stack trace points to your original source files.
Quick Start
Configure PostHog for your React app using the provided React installation steps and enable exception autocapture, then upload source maps so captured errors resolve to your original code.