Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active November 17, 2018 13:36
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 productioncoder/c01f0b260b8c49464064682fb9672759 to your computer and use it in GitHub Desktop.
Save productioncoder/c01f0b260b8c49464064682fb9672759 to your computer and use it in GitHub Desktop.
Youtube in React: making SideBar dynamic
render() {
return (
<Menu borderless vertical stackable fixed='left' className='side-nav'>
<SideBarItem path='/' label='Home' icon='home'/>
<SideBarItem path='/feed/trending' label='Trending' icon='fire'/>
{/*...*/}
</Menu>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment