1 | # @babel/plugin-transform-react-constant-elements
|
2 |
|
3 | > Treat React JSX elements as value types and hoist them to the highest scope
|
4 |
|
5 | See our website [@babel/plugin-transform-react-constant-elements](https://babeljs.io/docs/en/next/babel-plugin-transform-react-constant-elements.html) for more information.
|
6 |
|
7 | ## Install
|
8 |
|
9 | Using npm:
|
10 |
|
11 | ```sh
|
12 | npm install --save-dev @babel/plugin-transform-react-constant-elements
|
13 | ```
|
14 |
|
15 | or using yarn:
|
16 |
|
17 | ```sh
|
18 | yarn add @babel/plugin-transform-react-constant-elements --dev
|
19 | ```
|