Creating Menu in ReactJS using Bootstrap

Hi Friends, Extending my previous post to enable the application to show the dropdown on your page. To show the dropdown on our page we are going to use the bootstrap library of ReactJS. To use the bootstrap feature given by ReactJS, we need to install the library related to this. To install it we need to run the following command in command prompt window: npm install react-bootstrap --save Then you have to import this library in your code as follows: import Nav from 'react-bootstrap/lib/Nav'; import NavItem from 'react-bootstrap/lib/NavItem'; import NavDropdown from 'react-bootstrap/lib/NavDropdown'; import MenuItem from 'react-bootstrap/lib/MenuItem'; Once it is imported you can add the dropdown in your component class as shown below: <div><Nav bsStyle="tabs" activeKey={this.state.activePage} onSelect={this.handleSelect}> <NavItem eventKey={1} >Tab1</NavItem> ...