Skip to content

Commit

Permalink
docs: add minimum react version (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed May 21, 2024
1 parent 08aaebe commit 302a323
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The default Vite plugin for React projects.

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

## jsxRuntime
### jsxRuntime

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.

Expand Down

0 comments on commit 302a323

Please sign in to comment.