Open sanjarcode opened 1 year ago
Messy problem, makes code difficult to scale
Beyond the world of Components - Ryan Carniato - YouTube
The title is a little misleading. Basically it's a pitch about signals, and how they redefine how components work
Hmm, so virtual "state" in addition to "virtual DOM". Brilliant. — my YouTube comment, basically my gist the video
Idea: the calling notation for getting reactive variables in UI frameworks saves us the trouble of specifying dependency arrays in effects.
Of course, this only includes implicit ones, not arbitrary ones (ones not involving a signal), but it's still very helpful.
Note: not a new thing, just something I understood now (I used it in Vue.js but didn't think why the notation).
https://dev.to/this-is-learning/the-evolution-of-signals-in-javascript-8ob