react-classmap
This hook lets you reconcile third-party React components with your CSS framework of choice by defining a mapping of additional class names to apply to children DOM components that have a given class name.
Usage
;; const GenericButton = React; const MyButton = React; React;// => <button class="generic-button fa fa-cog"></button>
If you're using ES6 classes instead of React.createClass
, there's a higher-order component.
; ;
With ES7 decorators:
@ // ...
Installing
npm install react-classmap
Building
npm run build
Running tests
npm test