dom-add

appending markup to the DOM using recursion

Usage no npm install needed!

<script type="module">
  import domAdd from 'https://cdn.skypack.dev/dom-add';
</script>

README

dom-add

Simple function which takes an object as a parameter, uses recursion and converts the object into markup. Second parameter(optional) is the parent element inside which the generated markup needs to be appended.