Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit 302a323

Browse files
authored
docs: add minimum react version (vitejs#321)
1 parent 08aaebe commit 302a323

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/plugin-react/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The default Vite plugin for React projects.
44

5-
- enable [Fast Refresh](https://www.npmjs.com/package/react-refresh) in development
5+
- enable [Fast Refresh](https://www.npmjs.com/package/react-refresh) in development (requires react >= 16.9)
66
- use the [automatic JSX runtime](https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html)
77
- use custom Babel plugins/presets
88
- small installation size
@@ -46,7 +46,7 @@ Control where the JSX factory is imported from. Default to `'react'`
4646
react({ jsxImportSource: '@emotion/react' })
4747
```
4848

49-
## jsxRuntime
49+
### jsxRuntime
5050

5151
By default, the plugin uses the [automatic JSX runtime](https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html). However, if you encounter any issues, you may opt out using the `jsxRuntime` option.
5252

0 commit comments

Comments
 (0)