Skip to content

Instantly share code, notes, and snippets.

@EricCote
Created February 16, 2022 15:15
Show Gist options
  • Save EricCote/380dcc487bf1f3cd1e1d9a9db2880004 to your computer and use it in GitHub Desktop.
Save EricCote/380dcc487bf1f3cd1e1d9a9db2880004 to your computer and use it in GitHub Desktop.
Application de react
import React from "react";
import { Container, Nav, Navbar, NavDropdown } from "react-bootstrap";
function Menu() {
return (
<Navbar bg="light" expand="lg">
<Container>
<Navbar.Brand href="#home">React-Bootstrap</Navbar.Brand>
<Navbar.Toggle aria-controls="basic-navbar-nav" />
<Navbar.Collapse id="basic-navbar-nav">
<Nav className="me-auto">
<Nav.Link href="#home">Home</Nav.Link>
<Nav.Link href="#link">Link</Nav.Link>
<NavDropdown title="Dropdown" id="basic-nav-dropdown">
<NavDropdown.Item href="#action/3.1">Action</NavDropdown.Item>
<NavDropdown.Item href="#action/3.2">
Another action
</NavDropdown.Item>
<NavDropdown.Item href="#action/3.3">Something</NavDropdown.Item>
<NavDropdown.Divider />
<NavDropdown.Item href="#action/3.4">
Separated link
</NavDropdown.Item>
</NavDropdown>
</Nav>
</Navbar.Collapse>
</Container>
</Navbar>
);
}
export default Menu;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment