请问HN:有没有基于Qt风格的“信号与槽”的JavaScript UI库?

4作者: tmbsundar6 天前原帖
有没有类似于 Qt 风格的松耦合“信号与槽”机制的 JavaScript UI 库?Qt 允许小部件/组件通过一种发布-订阅类型的系统相互连接,信号的发射者并不需要关心消费者是谁。而如果我理解正确的话,大多数 JavaScript 库遵循的是一种层次耦合的状态传递系统,状态的共享是通过从父组件向子组件传递 props 等方式实现的。我想知道是否有任何 JavaScript 库以 Qt 事件驱动的信号-槽连接作为主要范式。
查看原文
Are there any equivalent of Qt style loosely coupled "Signals and Slots" based JavaScript UI library? Qt allows widget/ components to be connected to each other with a pub-sub type of system where the emitter of the signal really need not care who the consumer is. While, IIUC, most JS libraries follow a hierarchically coupled state passing system where sharing of state happens through props/ passing down from parent to child components with lifted state etc., Was wondering if there are any JS libraries which operate in the style of Qt event driven signal-slot connections as a primary paradigm.