3 ms·
The fourth option is to use a global message bus which each component can post messages to. Data still flows down but the need for wiring callbacks is removed
by dugmartin 12y ago
The fourth option is to use a global message bus which each component can post messages to. Data still flows down but the need for wiring callbacks is removed - each component in the tree just posts a message that is handled by whichever ancestor component owns the state mutated by that message.