ryansolid / dom-expressions

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

`<this.Foo />` doesn't work #293

Closed trusktr closed 8 months ago

trusktr commented 8 months ago

Here's a React example:

https://codesandbox.io/s/wonderful-water-6pj6xx?file=/App.js

In Solid it isn't working:

https://playground.solidjs.com/anonymous/8b30b075-a0b6-4816-b22d-cff8fdecad7e

A workaround is to read the variable off of this first:

https://playground.solidjs.com/anonymous/0520b3f9-bc27-4d39-b3b0-b3ea55e72b2b

lxsmnsyc commented 8 months ago

Let's just use #292 since it suffers from the same cause.

trusktr commented 8 months ago

Seems to be a different cause. In this case the output has this:

_$createComponent("this".Foo, {})

but overall maybe a single pass at handling this would do the trick.