babel plugin for remove classname
npm:
$ npm install --save-dev babel-plugin-react-remove-classname
yarn:
$ yarn add --dev babel-plugin-react-remove-classname
.babelrc
{
"plugins": ["react-remove-classname"]
}
Default: test-
const hello = () => <div className="test-a hello test-b"></div>
↓ ↓ ↓ ↓ ↓ ↓
const hello = () => <div className="hello"></div>
Thanks goes to these wonderful people (emoji key):
akameco 💻 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT © akameco