ryansolid / dom-expressions

A Fine-Grained Runtime for Performant DOM Rendering
MIT License
865 stars 124 forks source link

Allow Element to be type void #128

Closed Exelord closed 2 years ago

Exelord commented 2 years ago

I noticed many times I found components returning explicitly undefined to satisfy Element type:

export function MyComponent() {
  // ....
  return undefined;
}

I'm wondering if we could allow on void type as well, allowing components to not return anything and still be treated as undefined.