Replies: 1 comment 3 replies
-
Pontentially. That being said it only really matters as far as native elements. Solid's reactivity is granular and its "rendering" are side effects. So if someone just never put a lower case JSX tag in their code we don't need to import DOM API's. I've helped people make Canvas renderers (closed source, unfortunately), and I could see Solid being used today as is on other platforms. The compiler doesn't need import anything specific from So I see some ability to make this generalizable as far as having custom runtime. It would likely require me to add one more additional transform, the same way I have DOM/SSR. But if someone wanted to experiment with just using Components today they could. It's really only the native elements(lowercase) that would require this. Since we don't use a VDOM and diff, it's unclear that the view reconciling part of the code has any value anyway. I was looking at the React reconciler you linked, and there is all this insertElementBefore etc.. and I think that only matters if the underly system has that sort of representation. Ie.. layout that is based on ordered flow. A 3D renderer for example would have no need for that. I do see some places where maybe this makes sense but I think the approach with Solid might end up being rather different. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In React it's possible to implement some simple api https://github.com/facebook/react/tree/master/packages/react-reconciler and render React to anything, for example three.js. Is it possible to do something like this with Solid?
Beta Was this translation helpful? Give feedback.
All reactions