How to get a React Component reference to change its class using classList?
问题 I have create a React Component using the following code. In this i am creating tab and added the class and storing its reference to in a global namespace Interface for further processing. var TabBody = React.createClass({ getInitialState: function() { return { class: 'tabBody tab activeTab' } }, render: function() { Interfaces.tabBody = this; tabSelectionInfo.tabBody = this; return ( React.createElement('div', { className: this.state.class, onClick: handleTabClick }, React.createElement(