Skip to content

Instantly share code, notes, and snippets.

@lokeb
Created August 30, 2018 18:22
Show Gist options
  • Save lokeb/db5c1669ab9a82c5452f44b6d06a577e to your computer and use it in GitHub Desktop.
Save lokeb/db5c1669ab9a82c5452f44b6d06a577e to your computer and use it in GitHub Desktop.
React recurse through and render an object
const renderObj = (obj) => Object.entries(obj).map((el) => (
<div>
<div>el[0]</div>
<div>el[1]</div>
</div>
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment