One list item. Its first child is a paragraph, so the first argument is inline content or a paragraph block; further children follow it, including nested lists.
Rest
const item = li('Candy Kingdom', ul('Candy Castle', 'Candy Village')) Copy
const item = li('Candy Kingdom', ul('Candy Castle', 'Candy Village'))
One list item. Its first child is a paragraph, so the first argument is inline content or a paragraph block; further children follow it, including nested lists.