Skip to content

Instantly share code, notes, and snippets.

@fernandocamargo
Created May 19, 2020 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandocamargo/900fe77e12b170b99dff134f4f649213 to your computer and use it in GitHub Desktop.
Save fernandocamargo/900fe77e12b170b99dff134f4f649213 to your computer and use it in GitHub Desktop.
export const content = [
{ label: 'Item 1' },
{
label: 'Item 2',
children: [
{ label: 'Item 2.1' },
{ label: 'Item 2.2' },
{
label: 'Item 2.3',
children: [
{ label: 'Item 2.3.1' },
{ label: 'Item 2.3.2' },
{ label: 'Item 2.3.3' },
]
}
]
},
{ label: 'Item 3' },
{
label: 'Item 4', children: [
{ label: 'Item 4.1' },
]
},
]
/*
<ul>
<li>Item 1</li>
<li>
Item 2
<ul>
<li>Item 2.1</li>
<li>Item 2.2</li>
<li>
Item 2.3
<ul>
<li>Item 2.3.1</li>
<li>Item 2.3.2</li>
<li>Item 2.3.3</li>
<ul>
</li>
<ul>
</li>
<li>Item 3</li>
<li>
Item 4
<ul>
<li>Item 4.1</li>
</ul>
</li>
<ul>
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment