Shawn Swyx Wang - Why React is not Reactive

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

btw i'm the speaker, reply here if any qtns!

swyxTV
Автор

really impressed with your teaching abilities!!!

Euquila
Автор

Note for newcomers:

DOM’s addEventListener is akin to an Observable’s subscribe method.
When reading btn.addEventListener("click", handler), btn is the Observable (instance), addEventListener is that observable’s subscription method, and handler is the callback.
ie. source.subscribe("click", cb) where "click" is merely a way to tag-filter events from the source.

tl;dr: addEventListener is no more a coupling API than Observable is a decoupling pattern. Coupling is and has always been there, for an event consumer must bind to an event provider, either directly (strong coupling) or indirectly (light coupling).

chikamichi
Автор

The Push/Pull 2x2 chart at 21:23 seems really important, but is there any source for this? I want to learn more about it.
Also I think I once saw a version of this chart with *coroutine*.

nghiaminh