How to Make drop-down List in ReactJs

Hello Friends,

If you require to visually perceive an example of react-bootstrap dropdown menu example. if you optate to optically discern an example of react dropdown menu then you are the right place. you can visually perceive how to make a drop-down list in react. if you optate to optically discern an example of react dropdown button then you are the right place.

/src/App.js file

import React from 'react';
import './App.css';
import { DropdownButton,Dropdown } from 'react-bootstrap'

function App() {
  return (
    <div>
      
      <DropdownButton id="dropdown-item-button" title="Dropdown button">
        <Dropdown.Item as="button">Action</Dropdown.Item>
        <Dropdown.Item as="button">Another action</Dropdown.Item>
        <Dropdown.Item as="button">Something else</Dropdown.Item>
      </DropdownButton>

    </div>
  );
}

export default App;

i hope it can help you lot....

Tags:

Was this article helpful?

0 out of 0 person found this article helpful.

Leave a comment

Or

No Comment