Suggested answer

@api: Marks a property or method as public — accessible by parent components or via Lightning App Builder. Public properties are reactive (parent changes propagate to child). @wire: Connects a component property or function to a wire adapter (e.g., a Salesforce data service or Apex method). Data is fetched reactively. Example: @wire(getRecord, { recordId: '$recordId', fields }) wiredRecord; The $ prefix makes the parameter reactive. @track: Originally required for reactive nested object/array properties. In API version 39+, all component properties are reactive by default — @track is still valid but rarely needed. Primitive properties and object references are reactive; only internal mutations to objects/arrays need @track or explicit reassignment to trigger re-render.

Practice content for interview preparation; not an official vendor answer. Verify details against current product documentation.

Community comments (0)

No comments yet.

Sign in or create a free account to add a comment. Comments are moderated before they appear.

Plain text only, 3–2000 characters. A moderator reviews every comment before it is published.