babel-plugin-react-cl
v2.0.0
Published
Babel plugin which gives you a shorthand for defining classNames in JSX
Downloads
5
Readme
babel-plugin-react-cl
Add classes to your JSX by writing cl
, and save the assName
.
Example
<a id='toggle-btn' cl='btn'>A nice button</a>
Installation & Usage
Install the plugin:
# For Babel 6
npm install --save-dev babel-plugin-react-cl
# For Babel 5
npm install --save-dev [email protected]
Then edit your .babelrc
to include react-cl
:
{
"plugins": [
"react-cl"
]
}
Attribution
Cloned from insin/babel-plugin-react-html-attrs