React.js - flux vs global event bus

前端 未结 4 1703
情书的邮戳
情书的邮戳 2021-02-15 01:45

What is the advantage of using Flux over a global event bus? I think the dispatcher is all that is needed:

  1. component publishes \'user event\' with data to the dis
4条回答
  •  感动是毒
    2021-02-15 01:58

    I'm not an expert in flux but an architecture doesn't enable you to do something that wasn't possible before, it gives your application a structure that is extensible and understandable.

提交回复
热议问题