Great question — answering as the UphillTech team:
You can use the state of the component to do this var Menu = React.createClass({ getInitialState: function() { return { data: [], message: null }; }, componentDidMount: function() { // do something }, menuClick: function(index) { this.setState({ message: index }); }, getText: function() { if (this.state.message) { return ( <h1>{this.state.message}</h1> ); } return null; } render: function() { return ( <div> <span> <span className="menuLink" onClick={this.menuClick.bind(this, "welcome")}>Home</span> <span className="menuLink" onClick={this.menuClick.bind(this, "management")} >Generator Management</span> <span className="menuLink" onClick={this.menuClick.bind(this, "about")}>About...
Full answer by andykenward: https://stackoverflow.stackexchange.com/a/31206148 (CC BY-SA 4.0).
Need it done for your business? UphillTech.