Skip to content

Commit 38d71f6

Browse files
committedFeb 2, 2023
doc: add jsxImportSource option
1 parent 9af763d commit 38d71f6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎packages/plugin-react/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ react({
3333
})
3434
```
3535

36+
### Configure the JSX import source
37+
38+
Control where the JSX factory is imported from. This option is ignored for classic `jsxRuntime`.
39+
40+
```js
41+
react({
42+
jsxImportSource: '@emotion/react',
43+
})
44+
```
45+
3646
## Opting out of the automatic JSX runtime
3747

3848
By default, the plugin uses the [automatic JSX runtime](https://github.com/alloc/vite-react-jsx#faq). However, if you encounter any issues, you may opt out using the `jsxRuntime` option.

0 commit comments

Comments
 (0)
Please sign in to comment.