ryansolid / dom-expressions

A Fine-Grained Runtime for Performant DOM Rendering
MIT License
850 stars 122 forks source link

feat: JSX serialization #291

Open lxsmnsyc opened 8 months ago

lxsmnsyc commented 8 months ago

This adds JSX serialization capability. The change required the introduction of the SSRNode class which intends to replace the old { t: string } so that seroval understands the value more.

TODO: this PR is still missing the client-side process.

lxsmnsyc commented 8 months ago

Tricky scenario: what happens if <Comp /> returns anything but SSRNode? maybe we should add a new SSRUnresolved?

lxsmnsyc commented 7 months ago

Removed the JSX serialization for now, we currently emit undefined for JSX.