Closed akshat-khosya closed 1 year ago
Hello akshat,
That is because CDBICON is a pro component. You can get the pro version of the library here https://www.devwares.com/product/contrast-pro or you can remove the CDBICON import, all its uses cases in your code and use another icon library instead. Hope this helps
import React,{useState} from "react"; import { BrowserRouter as Router } from 'react-router-dom'; import { CDBNavbar, CDBNavBrand, CDBNavItem, CDBNavLink, CDBDropDown, CDBDropDownMenu, CDBDropDownToggle, CDBBtn, CDBNavToggle, CDBCollapse, CDBNavbarNav, CDBContainer } from "cdbreact"; import { CDBIcon } from "cdbreact"; const Navbar = () => { const [collapse2, setCollapse2] = useState(false);
const bgBlack = { backgroundColor: "#000000", color: "#f4f4f4" };
return (
); }; export default Navbar;
// I used this code but giving this error CDBIcon' is not exported from 'cdbreact