Skip to content

Instantly share code, notes, and snippets.

@Maruz
Created January 14, 2017 20:48
Show Gist options
  • Save Maruz/9274096e436f83e59524bdd09b6cc030 to your computer and use it in GitHub Desktop.
Save Maruz/9274096e436f83e59524bdd09b6cc030 to your computer and use it in GitHub Desktop.
<nav className='navbar'>
{
userRole === 'admin' && (
<AdminPanel />
) || userRole === 'user' && (
<UserPanel />
) || (
<StatusPanel />
)
}
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment