2.0.0 • Published 10 years ago
babel-plugin-react-cl v2.0.0
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 babel-plugin-react-cl@1.0.0Then edit your .babelrc to include react-cl:
{
"plugins": [
"react-cl"
]
}Attribution
Cloned from insin/babel-plugin-react-html-attrs