import React from 'react'; import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; import { PublicNavigation } from './public-navigation'; import { AuthenticatedNavigation } from './authenticated-navigation'; export class AppNavigation extends React.Component { renderNavigation( hasUser, location ) { return hasUser ? : ; } render() { return Application Name { this.renderNavigation( this.props.hasUser ) } ; } }