Skip to content

Instantly share code, notes, and snippets.

@cwardzala
Created September 21, 2016 14:15
Show Gist options
  • Save cwardzala/3cb80b2bae54cd08fd707d788b94afc2 to your computer and use it in GitHub Desktop.
Save cwardzala/3cb80b2bae54cd08fd707d788b94afc2 to your computer and use it in GitHub Desktop.
{this.props.list.map(listValue => {
if (typeof listValue === 'object') {
return <li key={listVlaue.name}>
{listValue.name}
<BulletedList list={listValue.list} />
</li>;
}
return <li key={ listValue }>{ listValue }</li>;
})}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment