funamioh / react-portfolio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

should use import not require

jayenashar opened this issue · comments

var Container = require("react-bootstrap").Container;
var Navbar = require("react-bootstrap").Navbar;
var Nav = require("react-bootstrap").Nav;
var NavItem = require("react-bootstrap").NavItem;
var Row = require("react-bootstrap").Row;
var Col = require("react-bootstrap").Col;

I'm surprised this works. maybe you can teach me something 😁

these should be at the top of the file like:

import { Container, Navbar, Nav, NavItem, Row, Col } from "react-bootstrap");

you have Navbar already imported like this so i'm not sure why you used require.