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.

1 Answer 1


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

  • 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. Jun 4, 2020 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 Jun 4, 2020 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? Jun 5, 2020 at 10:02
  • No, you can only add LWC component within Aura, not Aura inside LWC. You can have Aura cmp with lightning:container, for other LWC and so, you can wrap inside Aura or inside Lightning Page. May 9, 2023 at 6:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .