# logrocket-react

> React library for [LogRocket](https://logrocket.com/).

Latest version **7.0.1** (published 2026-06-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install logrocket-react
pnpm add logrocket-react
yarn add logrocket-react
bun add logrocket-react
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 7.0.1 |
| Published | 2026-06-04 |
| First published | 2017-05-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 89 |
| Author | Logrocket |
| Maintainers | eranimo, kristencolavita-lr, jlogsdon, logrocket-npm, pkriete, tmeehan, rlucioni, isalobar, amogensenlr, ianzylstra, sweber-lr, fauxsoup, arbesfeld |

## Links

- npm: https://www.npmjs.com/package/logrocket-react
- Repository: https://github.com/LogRocket/logrocket-react
- Homepage: https://github.com/LogRocket/logrocket-react#readme
- Issues: https://github.com/LogRocket/logrocket-react/issues
- npm.io page: https://npm.io/package/logrocket-react

## Recent versions

- 7.0.1 (latest) — 2026-06-04
- 4.0.0-beta.1 (beta) — 2019-10-02
- 0.0.3-rc1 (beta-0.0.3-rc1) — 2017-05-12
- 0.0.2 (beta-0.0.2-1) — 2017-05-11
- 0.0.1 (beta-0.0.1-1) — 2017-05-10
- 7.0.0 — 2025-12-17
- 6.0.3 — 2023-11-29
- 6.0.2 — 2023-11-29
- 6.0.1 — 2023-10-19
- 6.0.0 — 2023-10-19
- 5.0.1 — 2022-01-31
- 5.0.0 — 2022-01-31
- 4.0.1 — 2019-10-18
- 4.0.0 — 2019-10-02
- 4.0.0-beta.0 — 2019-10-02
- … 8 more at https://npm.io/package/logrocket-react/versions

## README

# LogRocket React plugin

Optional add-on package for [logrocket](https://www.npmjs.com/package/logrocket).

Please note that this is intended to be used in conjunction with build tooling that automatically adds the `displayName` property to your React components. Without this property existing, our plugin doesn't have any component names to report to LogRocket. You can also manually add them if you want LogRocket to report a different name.

---

The LogRocket React plugin allows you to search for sessions in which the user clicks a specific component in your app:

![](https://cl.ly/3e203c0G151G/Image%202017-06-05%20at%209.46.04%20PM.png)

## Guide for React versions

### If using React 17, 18, or 19

`npm i --save logrocket-react@7`

### If using React 16.10

`npm i --save logrocket-react@4`

### If using React 16.5 - 16.9

`npm i --save logrocket-react@3`

### If using React 16.4

`npm i --save logrocket-react@2`

### If using React <16.4+

`npm i --save logrocket-react@1`

### If using React 0.14.0 or React 15

`npm i --save logrocket-react@^0.0.5`

## Resources

- [Documentation](https://docs.logrocket.com/docs/react-plugin)

---
_Source: https://npm.io/package/logrocket-react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
