// Void elements that cannot have children const VOID_ELEMENTS = new Set([ 'area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'param', 'source', 'track', 'wbr', ]); export const isVoidElement = (tag: string) => VOID_ELEMENTS.has(tag);