Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com> Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
@babel/plugin-transform-react-constant-elements
Treat React JSX elements as value types and hoist them to the highest scope
See our website @babel/plugin-transform-react-constant-elements for more information.
Install
Using npm:
npm install --save-dev @babel/plugin-transform-react-constant-elements
or using yarn:
yarn add @babel/plugin-transform-react-constant-elements --dev