Проверьте метод рендеринга `customnavbar`.
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 `CustomNavbar`.
в чем причина этой ошибки я пытался решить ее но она не заканчивалась
Что я уже пробовал:
import React, { Component } from 'react'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; import { Link } from 'react-router-dom'; export default class CustomNavbar extends Component { render() { return ( <Navbar default collapseOnSelect> <Navbar.Header> <Navbar.Brand> <Link to="/">Simpleweb</Link> </Navbar.Brand> <Navbar.Toggle /> </Navbar.Header> <Navbar.collapse> <Nav pullRight> <NavItem eventkey={1} componentClass={Link} to="/"> Home </NavItem> <NavItem eventkey={2} componentClass={Link} to="/about"> About </NavItem> <NavItem eventkey={3} componentClass={Link} to="/news"> News </NavItem> </Nav> </Navbar.collapse> </Navbar> ); } }