Skip to content

Instantly share code, notes, and snippets.

@leebyron
Created April 2, 2019 20:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leebyron/d68e10fde187bab65bd9c5a6d68f6e93 to your computer and use it in GitHub Desktop.
Save leebyron/d68e10fde187bab65bd9c5a6d68f6e93 to your computer and use it in GitHub Desktop.
var children = []
for (var key in terms) {
if (terms.hasOwnProperty(key)) {
children.push(
<React.Fragment key={key}>
<dl>{key}</dl>
<dd>{terms[key]}</dd>
</React.Fragment>
)
}
}
return <dl>{children}</dl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment