Verbatim https://www.dazhuanlan.com/2019/08/25/5d625951eff92/
Event Bus bus transfer value resolved between brothers components
practical use:
A packageBus.js
1 |
Import View from 'view' |
Introduced at the component calls
Component one:
1 |
import Bus from './Bus' |
Component II:
1 |
import Bus from './Bus' |