I need to apply external CSS for findDomNode() returned element.
Appfile
apply_external(){
var mydiv = document.getElementById('myelement')
ReactDOM.findDOMNode(mydiv).style.fontSize='100px';
}
render() {
return (
<div>
<button onClick = {this.forceUpdateHandler}>FORCE UPDATE</button>
<h4 >Random number: {Math.random()}</h4>
<button onClick = {this.apply_external}>FIND DOME NODE</button>
<h2 id="myelement">FORCE UPDATE CHECKING</h2>
</div>
);
}
In this case we just use simple CSS properties.My question is, i need to apply the External CSS for "mydiv" in apply_external() method.Thankyou