I am using
import { Nav } from 'office-ui-fabric-react';
function CustomNav(props) {
return <Nav groups={groups} selectedKey={selectedKey} onLinkClick={handleLinkClick} data-myTag="hello" />;
}
For nav object, I want to add custom html attributes such as data-myTag
. How do I add this attribute to the button that is added to the DOM by this Nav
object.