# @rsbuild/plugin-react

> React plugin for Rsbuild

Latest version **2.1.0** (published 2026-06-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @rsbuild/plugin-react
pnpm add @rsbuild/plugin-react
yarn add @rsbuild/plugin-react
bun add @rsbuild/plugin-react
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2026-06-18 |
| First published | 2023-10-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 2 |
| Unpacked size | 11.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3379 |
| Maintainers | chenjiahan, yuku-dev |

## Links

- npm: https://www.npmjs.com/package/@rsbuild/plugin-react
- Repository: https://github.com/web-infra-dev/rsbuild
- Homepage: https://rsbuild.rs
- Issues: https://github.com/web-infra-dev/rsbuild/issues
- npm.io page: https://npm.io/package/@rsbuild/plugin-react

## Dependencies (2)

- [react-refresh](https://npm.io/package/react-refresh.md) ^0.18.0
- [@rspack/plugin-react-refresh](https://npm.io/package/@rspack/plugin-react-refresh.md) ^2.0.2

## Recent versions

- 2.1.0 (latest) — 2026-06-18
- 2.0.0-rc.4 (rc) — 2026-04-17
- 2.0.0-alpha.3 (alpha) — 2026-01-26
- 0.0.0-next-20240729023126 (next) — 2024-07-29
- 0.7.0-beta.9 (beta) — 2024-05-24
- 0.0.0-nightly-20240114070311 (nightly) — 2024-01-14
- 2.0.1 — 2026-05-30
- 2.0.0 — 2026-04-22
- 2.0.0-rc.3 — 2026-04-14
- 2.0.0-rc.2 — 2026-04-09
- 1.4.6 — 2026-03-11
- 1.4.5 — 2026-02-02
- 1.4.4 — 2026-01-30
- 1.4.3 — 2026-01-15
- 1.4.2 — 2025-11-06
- … 221 more at https://npm.io/package/@rsbuild/plugin-react/versions

## README

# @rsbuild/plugin-react

An Rsbuild plugin to provide support for React, integrating features such as JSX compilation and React Refresh.

<p>
  <a href="https://npmjs.com/package/@rsbuild/plugin-react">
   <img src="https://img.shields.io/npm/v/@rsbuild/plugin-react?style=flat-square&colorA=564341&colorB=EDED91" alt="npm version" />
  </a>
  <img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="license" />
  <a href="https://npmcharts.com/compare/@rsbuild/plugin-react"><img src="https://img.shields.io/npm/dm/@rsbuild/plugin-react.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="downloads" /></a>
</p>

## Documentation

See [Documentation](https://rsbuild.rs/plugins/list/plugin-react).

## License

[MIT](https://github.com/web-infra-dev/rsbuild/blob/main/LICENSE).

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