1

I am about to kick start a project that's gonna make use of the Lightning Container in the Lightning Aura Framework.

Q: Is there any LWC counterpart for this aura component?

From the documentation it seems not to address anything similar.

Interest to know this because I would like to make a decision and test out both approaches, and probably opt for the Lightning Web Component framework, as it seems the forward-looking technology endorsed by Salesforce.

2

No. Currently, you do not have LWC alternative to lightning:container.

Whenever you need to check similar tags for Aura vs LWC, you can check this documentation.

However, once check lwc:dom directive. Your requirement may fulfil with lwc:dom

3
  • Thanks for the reference. Wasn't aware of that comparison overview. Well, not sure how much that would apply to my case cause we're about to host(potentially multiple) React components in a Lightning Community UI. From a 1st glance couldn't see how lwc:dom directive would help me. – Endrit Sino Jun 4 '20 at 21:03
  • You cannot host the application in lwc:dom. But again, when you are implementing whole application in React, it does not matter whether its Aura or LWC. You can use Aura to host and use that Aura anywhere in lightning. For all other custom development you can maintain LWC comp which is sibling of lightning:container in Aura comp. Hope it makes sense – salesforce-sas Jun 4 '20 at 23:17
  • If I understood it correctly you're suggesting to have the React App, wrapped in the Lightning Aura Component via the lightning:container component, and this aura component wrapped in an LWC component? – Endrit Sino Jun 5 '20 at 10:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.