3 ms·
Now that Preact supports signals as well, it serves as a nice middle ground between SolidJS-like performance and semantics and the React ecosystem for when you
by sirwhinesalot 4y ago
Now that Preact supports signals as well, it serves as a nice middle ground between SolidJS-like performance and semantics and the React ecosystem for when you really need it.
- solarkraft 4y agoI've been thinking about this. I'm surprised it's not being talked about more. Preact's signals library even supports React, though from what I last heard not with its current (concurrent) rendering mode. I've seen Jotai mentioned in the thread and now I wonder: Is it exactly what signals also do? Is it just the same thing? It seems to take state out of the component in a very similar way.
- samuelstros 4y agoEverything around signals is a bit ambiguous... The decision for SolidJS, and likely the differentiator to Jotai et al., is simplicity. The reactive system (signals) are de-coupled from rendering. SolidJS is not doing a good job communicating that fact. The de-coupling leads to a simple reactive model that works in plain JS and thereby JSX too. I recommend this video https://www.youtube.com/watch?v=J70HXl1KhWE https://www.youtube.com/watch?v=J70HXl1KhWE