SPA components are connected to AEM components via the MapTo() method.
Which code should be used to correctly connect an SPA component called ItemList to its AEM equivalent?
Correct Answer: C
The MapTo() method is used to map a SPA component to an AEM component by specifying the sling:resourceType of the AEM component as an argument. The MapTo() method should be called on the SPA component and not on a string. The secondargument of the MapTo() method is optional and can be used to provide an edit configuration for the SPA component.