Created
August 30, 2018 18:22
-
-
Save lokeb/db5c1669ab9a82c5452f44b6d06a577e to your computer and use it in GitHub Desktop.
React recurse through and render an object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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