sanjar-notes / web_dev_fundamentals

The basics - HTML, CSS, Javascript and more
https://sanjar-notes.github.io/web_dev_fundamentals/
3 stars 0 forks source link

Signals in UI apps #75

Open sanjarcode opened 1 year ago

sanjarcode commented 1 year ago

https://dev.to/this-is-learning/the-evolution-of-signals-in-javascript-8ob

sanjarcode commented 1 year ago

Messy problem, makes code difficult to scale

sanjarcode commented 1 year ago

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

sanjarcode commented 1 year ago

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).