Migrate Apex

Aura components and Lightning web components both use an Apex controller to read or persist Salesforce data. There are no syntax differences for the two programming models.

Lightning web components can also use the JavaScript @wire decorator to wrap calls to an Apex method or the User Interface API.

See Also