Skip to content

Instantly share code, notes, and snippets.

@bautistaaa
Last active May 4, 2020 17:24
Show Gist options
  • Select an option

  • Save bautistaaa/2459c2e3934e49c80f467faf8e4b2d70 to your computer and use it in GitHub Desktop.

Select an option

Save bautistaaa/2459c2e3934e49c80f467faf8e4b2d70 to your computer and use it in GitHub Desktop.
const links = [
{
label: 'Link',
path: '/link',
},
{
label: 'Link2',
path: '/link2',
},
{
label: 'Parent',
children: [
{
label: 'Child',
path: '/child',
},
{
label: 'Child2',
path: '/child',
},
{
label: 'Child with Children',
children: [
{
label: 'GrandChild 1',
path: '/c1',
},
{
label: 'GrandChild 2',
children: [
{
label: 'GreatGrandChild',
path: '/gc1',
},
],
},
],
},
],
},
{
label: 'Parent2',
children: [
{
label: 'Parent2Child',
path: '/child',
},
{
label: 'Parent2Child2',
path: '/child',
},
],
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment