Closed birendra-90 closed 5 years ago
By providing an href
key to a leaf element in the tree material-ui-treeview
will use the Link
component of react-router-dom
to perform the transition.
const tree = [
{
value: 'Parent A',
nodes: [{ value: 'Child A', href: '/child-a' }, { value: 'Child B', href: '/child-b' }],
},
];
// ...
<MuiTreeView tree={tree} />
@helfi92 Thank you so much
You're welcome!
How do i integrate react router