babel-plugin-react-cl
Add classes to your JSX by writing cl
, and save the assName
.
Example
A nice button
Installation & Usage
Install the plugin:
# For Babel 6
npm install --save-dev babel-plugin-react-cl
# For Babel 5
npm install --save-dev babel-plugin-react-cl@1.0.0
Then edit your .babelrc
to include react-cl
:
Attribution
Cloned from insin/babel-plugin-react-html-attrs