Question: property 'style' does not exist on type 'element' react?
Answer: In case you are interested to change the style of an element on the fly/dynamically using typescript. The simplest way is to get hold of the element using querySelector and handle it. let myElement = document.