With ReactJS i am using MDBNav from MDBreact.
This is the code od the container where is props.data defined:
import React from \'react\'
import
Try to add prop link
to MDBNavLink
. MDBNavLink is a NavLink
from react-router-dom
, but in a component like tabs and pills you should use Link
from react-router-dom
Check this solution:
import React from "react";
import { BrowserRouter } from 'react-router-dom';
import { MDBNav, MDBNavItem, MDBNavLink } from "mdbreact";
const MiTabs = props => {
return (
{props.data.map(a => (
//Add a link prop to component below
{a.nombre}
))}
//Add a link prop to component below
Active
//Add a link prop to component below
NO Active
);
};
export default MiTabs;
This code should work properly now.