Created
April 28, 2021 15:18
-
-
Save m-yahya/7937a3e318a9172d86b60aefe1e349d1 to your computer and use it in GitHub Desktop.
Tutorial: Nested UI from JSON data and Tree view
This file contains hidden or 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
// get items in the object | |
const getItems = (items) => { | |
for (const item in items) { | |
markupArray.push(`<li> ${item}`); | |
markupArray.push("</li>"); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment