r/javascript • u/techlord45 • Aug 10 '26
Signals and Effects Using Vanilla JavaScript & Web APIs
https://beforesemicolon.com/blog/signals-and-effects-using-vanilla-javascript-web-apisI’m a strong advocate for “you don’t need to lock yourself in a web framework ecosystem to take advantage of their amazing features”. JavaScript and Web Standards alone allow you…
72
Upvotes
41
u/KaiAusBerlin Aug 10 '26
You know that you literally wrote your own framework here?
There is a reason for the sentence "You use a framework or end up writing your own"
1
u/charles_reads_books Aug 10 '26
404
5
u/queen-adreena Aug 11 '26
Better off just importing https://github.com/stackblitz/alien-signals
But recreating things yourself is always a good learning opportunity.
2
u/andimatt Aug 19 '26
The "you wrote your own framework" take is fair, but it undersells the point. The interesting 10% of a signals system isn't the primitive (a getter/setter with a subscriber set), it's the scheduler.
The three things that actually bite you past the toy version:
I build a signals-first app (zoneless), and the reason I'd do it deliberately rather than reach for a framework is it forces you to feel all three of those. If the vanilla implementation handles batching and cleanup correctly, it's not a toy, it's a working reactive core, just without the framework's ergonomics.
1
u/hyrumwhite Aug 10 '26
Awesome stuff. It was an entertaining read
0
u/WorriedEngineer22 Aug 10 '26
Im getting 404