Question · JavaScript and React course · Module 15: Patterns and Architecture
Choosing a Communication Pattern
Which pattern is BEST suited for communication between distant components in different branches of the tree?
Answer options
- Props drilling: passing props through every level of the tree
- Event-Driven Architecture: EventBus with pub/sub and loose coupling
- Headless Components: hooks with getProps for aria attributes
- Slot Pattern: passing JSX through named props
You can check the correct answer by solving this task in the CodeWorlds game.