Interview Question Set
LWC Core Questions
Interview preparation for UI-focused Salesforce developers working with LWC and Lightning pages.
Question
When would you use @wire instead of imperative Apex in LWC?
Use @wire when the component can reactively consume supported data and you want the framework to manage refresh behavior. Use imperative Apex when you need explicit timing or unsupported operations.
QuestionHow do parent and child components communicate in LWC?
Parents pass data down through public properties, and children communicate up by dispatching custom events.