My approach would be to make the className your main view be determined by the state contained in the enclosing component. Sort of:
<MasterView className={this.state.masterViewClass} />
(Obviously, it has been modified to fit your code, most likely you will want to apply it to certain tags, and not to the entire responsive element).
When you click on an element of the main view, change its masterViewClass accordingly, using the Responsible Utilities boot files to hide those elements that you do not want to display.
source share