Using props.data with MDBNav, how to activate the active TAB or LINK

后端 未结 2 1609
心在旅途
心在旅途 2021-01-23 16:54

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          


        
2条回答
  •  一个人的身影
    2021-01-23 17:30

    You need to specify the active option, not activo:

    {a.nombre} 
    

    By doing {a.active} you just add true to MDBNavLink (which doesn't make sense), you need to add active={true} instead

提交回复
热议问题