Closed andreichuk closed 2 years ago
It is supported, but it must be a function, which will be called with the node. So basically I'd recommend making that an observable.
The code you posted can't possibly work, you are just passing ref={undefined}
effectively, there's no way that variable could get assigned. It works in Solid only because its transform changes how the language works, you are not really writing plain JS anymore.
Is JSX's 'ref' attribute supported? In the following example it does nothing: