Facebook | Frontend Engineer | OA | USA
Anonymous User
1409

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.

Comments (5)