The code snippet:
import React, { Component } from 'react';
import { Navbar, Nav, NavItem} from 'react-bootstrap';
class Navigation extends Component {
render(){
return (
<Navbar>
<Navbar.Header>
<Navbar.Brand>
Github Searcher
</Navbar.Brand>
</Navbar.Header>
<Nav>
<NavItem href="#"> Login </NavItem>
</Nav>
</Navbar>
)
}
}
export default Navigation;
Getting this error message:
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of
Navigation.