can't get CSS in JS with !important working
Steps to reproduce the behavior, please provide code snippets or a repository:
<div style={{
margin: "200px",
textAlign: "center",
width: "100px",
height: "100px",
border: "1px solid black",
background: "red !important"
}}
>
some text
</div>

style rule is working with !important
This is an issue in React: https://github.com/facebook/react/issues/1881
You could use github.com/zeit/styled-jsx for this though.
Thanks for the confirmation
Most helpful comment
This is an issue in React: https://github.com/facebook/react/issues/1881