babel-plugin-react-cl

2.0.0 • Public • Published

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.0

Then edit your .babelrc to include react-cl:

{
  "plugins": [
    "react-cl"
  ]
}

Attribution

Cloned from insin/babel-plugin-react-html-attrs

MIT Licensed

Readme

Keywords

none

Package Sidebar

Install

npm i babel-plugin-react-cl

Weekly Downloads

1

Version

2.0.0

License

MIT

Last publish

Collaborators

  • mcrowe