developit / htm

Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.
Apache License 2.0
8.73k stars 170 forks source link

possibility to return monomorphic shape? #246

Open Haroenv opened 1 year ago

Haroenv commented 1 year ago

The babel plugin has a "monomorphic" option to always return options, but it seems like htm proper (or possibly that's the preact integration) returns raw children.

Is there some way to have htm always return objects?

Thanks!