# vitest-browser-react changelog
> Renders React components inside Vitest's browser mode, as the testing-library equivalent for it.
- Vendor: Vitest
- Category: Developer Tools
- Official site: https://github.com/vitest-community/vitest-browser-react
- Tracked by: What's New (https://whatsnew.fyi/product/vitest-browser-react)
- Harvested from: GitHub (vitest-community/vitest-browser-react)
- Entries below: 10 (newest first)
What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog.
Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'.
## Releases
### v2.2.0
- Date: 2026-04-05
- Version: v2.2.0
- Original notes: https://github.com/vitest-community/vitest-browser-react/releases/tag/v2.2.0
- Permalink: https://whatsnew.fyi/product/vitest-browser-react/releases/v2.2.0
- **added** — Add createRootOptions to ComponentRenderOptions
- **added** — Expose page.renderHook
###### 🚀 Features
- Add `createRootOptions` to `ComponentRenderOptions` - by @nstepien in https://github.com/vitest-community/vitest-browser-react/issues/53 [(8803d)](https://github.com/vitest-community/vitest-browser-react/commit/8803d53)
- Expose `page.renderHook` - by @sheremet-va in https://github.com/vitest-community/vitest-browser-react/issues/54 [(38389)](https://github.com/vitest-community/vitest-browser-react/commit/3838945)
###### [View changes on GitHub](https://github.com/vitest-community/vitest-browser-react/compare/v2.1.0...v2.2.0)
### v2.1.0
- Date: 2026-03-13
- Version: v2.1.0
- Original notes: https://github.com/vitest-community/vitest-browser-react/releases/tag/v2.1.0
- Permalink: https://whatsnew.fyi/product/vitest-browser-react/releases/v2.1.0
###### 🚀 Features
- Integrate trace mark with render - by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-community/vitest-browser-react/issues/47 [(2b983)](https://github.com/vitest-community/vitest-browser-react/commit/2b9835d)
###### 🐞 Bug Fixes
- Update links to api documentation - by @nilshartmann in https://github.com/vitest-community/vitest-browser-react/issues/48 [(91885)](https://github.com/vitest-community/vitest-browser-react/commit/91885dd)
###### [View changes on GitHub](https://github.com/vitest-community/vitest-browser-react/compare/v2.0.5...v2.1.0)
### v2.0.5
- Date: 2026-01-28
- Version: v2.0.5
- Original notes: https://github.com/vitest-community/vitest-browser-react/releases/tag/v2.0.5
- Permalink: https://whatsnew.fyi/product/vitest-browser-react/releases/v2.0.5
###### 🐞 Bug Fixes
- Avoid act warnings - by @sheremet-va in https://github.com/vitest-community/vitest-browser-react/issues/46 [(76a27)](https://github.com/vitest-community/vitest-browser-react/commit/76a2765)
###### [View changes on GitHub](https://github.com/vitest-community/vitest-browser-react/compare/v2.0.4...v2.0.5)
### v2.0.4
- Date: 2026-01-22
- Version: v2.0.4
- Original notes: https://github.com/vitest-community/vitest-browser-react/releases/tag/v2.0.4
- Permalink: https://whatsnew.fyi/product/vitest-browser-react/releases/v2.0.4
###### 🐞 Bug Fixes
- Inject a consistent testid - by @sheremet-va in https://github.com/vitest-community/vitest-browser-react/issues/45 [(f5c88)](https://github.com/vitest-community/vitest-browser-react/commit/f5c883a)
###### [View changes on GitHub](https://github.com/vitest-community/vitest-browser-react/compare/v2.0.3...v2.0.4)
### v2.0.3
- Date: 2026-01-22
- Version: v2.0.3
- Original notes: https://github.com/vitest-community/vitest-browser-react/releases/tag/v2.0.3
- Permalink: https://whatsnew.fyi/product/vitest-browser-react/releases/v2.0.3
###### 🐞 Bug Fixes
- Use a simple counter for act - by @ocavue in https://github.com/vitest-community/vitest-browser-react/issues/43 [(8b122)](https://github.com/vitest-community/vitest-browser-react/commit/8b122d2)
- Attach a stable testid to default `baseElement` and `container` - by @nizans in https://github.com/vitest-community/vitest-browser-react/issues/44 [(e8acb)](https://github.com/vitest-community/vitest-browser-react/commit/e8acbcb)
- **Warning:** If you are using snapshots with `container`, update to Vitest 4.0.18 to avoid rendering injected `data-testid` attribute.
###### [View changes on GitHub](https://github.com/vitest-community/vitest-browser-react/compare/v2.0.2...v2.0.3)
### v2.0.2
- Date: 2025-10-27
- Version: v2.0.2
- Original notes: https://github.com/vitest-community/vitest-browser-react/releases/tag/v2.0.2
- Permalink: https://whatsnew.fyi/product/vitest-browser-react/releases/v2.0.2
###### 🐞 Bug Fixes
- Remove unwanted tsconfig options - by @mrginglymus in https://github.com/vitest-community/vitest-browser-react/issues/32 [(5b350)](https://github.com/vitest-community/vitest-browser-react/commit/5b3507e)
###### [View changes on GitHub](https://github.com/vitest-community/vitest-browser-react/compare/v2.0.1...v2.0.2)
### v2.0.1
- Date: 2025-10-27
- Version: v2.0.1
- Original notes: https://github.com/vitest-community/vitest-browser-react/releases/tag/v2.0.1
- Permalink: https://whatsnew.fyi/product/vitest-browser-react/releases/v2.0.1
###### 🐞 Bug Fixes
- Update links - by @sheremet-va [(22e67)](https://github.com/vitest-community/vitest-browser-react/commit/22e6758)
###### [View changes on GitHub](https://github.com/vitest-community/vitest-browser-react/compare/v2.0.0...v2.0.1)
### v2.0.0
- Date: 2025-10-22
- Version: v2.0.0
- Original notes: https://github.com/vitest-community/vitest-browser-react/releases/tag/v2.0.0
- Permalink: https://whatsnew.fyi/product/vitest-browser-react/releases/v2.0.0
###### 🚨 Breaking Changes
- Support async act v2 - by @cloudkite and **Matan Borenkraout** in https://github.com/vitest-dev/vitest-browser-react/issues/22 [(dd899)](https://github.com/vitest-dev/vitest-browser-react/commit/dd89901)
- Support new Vitest 4 syntax - by @sheremet-va in https://github.com/vitest-dev/vitest-browser-react/issues/28 [(791cb)](https://github.com/vitest-dev/vitest-browser-react/commit/791cb5b)
###### 🚀 Features
- Add `locator` property - by @sheremet-va [(12e20)](https://github.com/vitest-dev/vitest-browser-react/commit/12e2019)
- Add `RenderOptions` type for easier migration from RTL - by @wojtekmaj in https://github.com/vitest-dev/vitest-browser-react/issues/27 [(e3377)](https://github.com/vitest-dev/vitest-browser-react/commit/e33772b)
###### 🐞 Bug Fixes
- Add a mention of @vitejs/plugin-react - by @sheremet-va [(b2d41)](https://github.com/vitest-dev/vitest-browser-react/commit/b2d4120)
###### [View changes on GitHub](https://github.com/vitest-dev/vitest-browser-react/compare/v1.0.1...v2.0.0)
### v2.0.0-beta.4
- Date: 2025-10-03
- Version: v2.0.0-beta.4
- Original notes: https://github.com/vitest-community/vitest-browser-react/releases/tag/v2.0.0-beta.4
- Permalink: https://whatsnew.fyi/product/vitest-browser-react/releases/v2.0.0-beta.4
- Labels: Pre-release
###### 🚨 Breaking Changes
- Support new Vitest 4 syntax - by @sheremet-va in https://github.com/vitest-dev/vitest-browser-react/issues/28 [(791cb)](https://github.com/vitest-dev/vitest-browser-react/commit/791cb5b)
###### [View changes on GitHub](https://github.com/vitest-dev/vitest-browser-react/compare/v2.0.0-beta.3...v2.0.0-beta.4)
### v2.0.0-beta.3
- Date: 2025-08-06
- Version: v2.0.0-beta.3
- Original notes: https://github.com/vitest-community/vitest-browser-react/releases/tag/v2.0.0-beta.3
- Permalink: https://whatsnew.fyi/product/vitest-browser-react/releases/v2.0.0-beta.3
- Labels: Pre-release
###### 🚀 Features
- Add `RenderOptions` type for easier migration from RTL - by @wojtekmaj in https://github.com/vitest-dev/vitest-browser-react/issues/27 [(e3377)](https://github.com/vitest-dev/vitest-browser-react/commit/e33772b)
###### [View changes on GitHub](https://github.com/vitest-dev/vitest-browser-react/compare/v2.0.0-beta.2...v2.0.0-beta.3)