Question d’entretien chez Meta

For a recursive description of DOM elements i.e. var dom = { type:'div', props:{id:'hello', children:[{type:'h1', children:'HELLO'}]}}. Define a function that prepares a actual dom elements.

Réponse à la question d'entretien

Utilisateur anonyme

6 janv. 2022

recursive document.createElement with assing all the attributes and children.

4