
Signals: What You Should Know with Tejas Kumar - JSJ 576
JavaScript Jabber
00:00
The Differences Between Solid JS and JavaScript
Solon is based on solid JS, but looks very different under the hood. For example, it doesn't need to be within the closure of the component. You can call create store from wherever you want. And what it will return to you is a tuple containing a getter and a setter. This getter, so the first element in youruple, when you call it, looking at its context. So every time you call that getter, you opt into when the state here changes now, do something. In Solon's case, that means rerender just this piece of UI.
Transcript
Play full episode