Topic: Error with Materials Tab Component
Smiles free asked 5 years ago
Expected behavior https://mdbootstrap.com/docs/react/components/tabs/ I am using the code from the Material Tabs JSX
Actual behavior I get the below error in the browser
TypeError: Object(...) is not a function NavLink c:/devportal/devportalapp/node_modules/mdbreact/dist/mdbreact.esm.js:7329 7326 | }; 7327 | 7328 | var NavLink = function NavLink(props) {
7329 | var _useState = useState({}), 7330 | _useState2 = _slicedToArray(_useState, 2), 7331 | cursorPos = _useState2[0], 7332 | setCursorPos = _useState2[1];
Resources (screenshots, code snippets etc.) I am using the code as is.
import React, { Component } from "react"; import { MDBContainer, MDBRow, MDBCol, MDBTabPane, MDBTabContent, MDBNav, MDBNavItem, MDBNavLink, MDBIcon } from "mdbreact";
class TabsMaterial extends Component { state = { activeItem: "1" }
toggle = tab => () => { if (this.state.activeItem !== tab) { this.setState({ activeItem: tab }); } }
render() { return ( Profile Follow Contact Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park. Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr. ); } }export default TabsMaterial;
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- ForumUser: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.22.1
- Device: Laptop
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: Yes
Jakub Chmura staff commented 5 years ago
Please copy the code of your component and paste here using `` or use your snippets to show me what you want. I think you paste wrong code because I don't see any components in your example