LWCBeginnereventscommunication
How do parent and child LWCs communicate?
Real World Scenario
A child picker selects an Account and the parent list must refresh. You explain communication patterns.
Expected Answer
• Parent passes data down via @api properties and public methods
• Child sends events up with CustomEvent and dispatchEvent
• Parent listens with on event handlers in template
• Sibling components communicate via parent mediator or Lightning Message Service
• Avoid tight coupling—keep events named clearly with detail payloads
Follow-Up Questions & Answers
Click to expand — each follow-up includes a direct, interview-ready answer
Pub-sub channel for unrelated components on same page to exchange messages without parent-child relationship.
Architect Perspective
Data down, events up—same as React interviews, same phrase works here.