Interview Question
How do parent and child components communicate in LWC?
Direct Answer
Parents pass data down through public properties, and children communicate up by dispatching custom events.
Detailed Explanation
A stronger answer adds that component communication should stay explicit and predictable. It may also mention pub-sub or message service patterns for sibling or broader communication scenarios.
Why the Interviewer Asks This
The interviewer is testing component design fundamentals.
Weak Answer Warning
A weak answer lists decorators without explaining the flow of communication.
Stronger Answer Direction
Focus on data down, events up, and when broader patterns are needed.
Follow-up Question
How would you coordinate communication between unrelated components?