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