Skip to content

Instantly share code, notes, and snippets.

@Louiefigz
Created May 10, 2017 20:34
Show Gist options
  • Select an option

  • Save Louiefigz/337c1825a4e67d741decd3c8f3e11ab6 to your computer and use it in GitHub Desktop.

Select an option

Save Louiefigz/337c1825a4e67d741decd3c8f3e11ab6 to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import {Button, Form, FormGroup, FormControl, Navbar, Nav, NavItem} from 'react-bootstrap';
class MyNavbar extends Component {
render() {
return (
<Navbar className="MyNav">
<Navbar.Header>
<Navbar.Brand>
<a href="/">Weather App</a>
</Navbar.Brand>
</Navbar.Header>
<Navbar.Collapse>
<Nav pullRight>
<NavItem>
<Form inline className="Form">
<FormGroup controlId="formInlineName">
<FormControl type="text" placeholder="New York, NY" />
{' '}
<Button bsStyle="success" bsSize="small" onClick={this.handleClick}>Get Weather</Button>
</FormGroup>
</Form>
</NavItem>
</Nav>
</Navbar.Collapse>
</Navbar>
)
}
}
export default MyNavbar;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment