You can use ReactDOM.findDOMNode(this)
to access the underlying DOM node. But accessing the DOM node and manipulating like you do is against the React style of programming. It’s better to use a state variable and called the setState
method to re-render the DOM.