9 ms·
> It already is, obviously. But how is SolidJS supposed to work with other non-SolidJS code? Who actually writes code like this? People use some signal graph l
by imbnwa 3y ago
> It already is, obviously. But how is SolidJS supposed to work with other non-SolidJS code?
Who actually writes code like this? People use some signal graph library for application code typically, I’ve never seen anyone mixing SolidJs with MobX in application code or as a consequence of a library dep.
- ivanjermakov 3y agoThose who want to develop a library that can be used by any other reactive framework. I often see SignalLike<T> type that tries to subtype it. https://github.com/preactjs/preact/blob/757746a915d186a909540814100982ba6905437a/src/jsx.d.ts#L69 https://github.com/preactjs/preact/blob/757746a915d186a90954...
- bastawhiz 3y agoLet me offer you a scenario: you want to build a UI web component that uses state, but you want it to be usable in both Svelte and React (with solidjs). The current situation is that it's a massive pain in the ass, because you have to move all of the state out of your code into a "driver" module that you can swap out for each of the frameworks you want to target. The entire architecture of your library is made worse (less readable/maintainable, probably less performant, harder to contribute to) in order to have a single set of UI code. All of that goes away when the plumbing for handling state is standardized by the runtime.
- imbnwa 3y agoPerhaps Svelte, Solid, React, et al should form a working group and hammer out an interopt standard