I want to override my inline css by using dom and when I am going for !important , color doesn't work.
componentDidMount(){
document.getElementById("para").style.color = "red !important"
}
Here is the default example , why it doesn't work ?
I am also giving link : https://codesandbox.io/s/react-draft-wysiwyg-editor-ppctk
document.getElement...and react together, you're doing react wrong. If you want to setstylesbased on things happening, thosestylesshould be a part ofstate. EDIT: this is the quickest thing I can google that will shows you how to do it reasonably well