This high order component allows rendering inline styles with the !important flag.
Install it with npm
npm install react-with-important-style
To use it, import it, and then wrap either a dom component or a custom component.
;var MySpan = ;// or withImportantStyle(MyComponent); var <MySpan style=backgroundColor: 'red !important' />;
That's it!