---
schema_version: "1"
id: 91a1b4778f34531c32ebc11a13b08ff9d8f077d91a207015fead28b13ce4e613
title: Lightning Container
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/container/container-overview.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/container-overview.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: cc9099fd1356345e01e109c948b938587bf37706c2581ae046496fc1d21ae0f5
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# Lightning Container

Upload an app developed with a third-party framework as a static resource, and host the content in an Aura component using `lightning:container`. Use `lightning:container` to use third-party frameworks like AngularJS or React within your Lightning pages.

The `lightning:container` component hosts content in an iframe. You can implement communication to and from the framed application, allowing it to interact with the Lightning component. `lightning:container` provides the `message()` method, which you can use in the JavaScript controller to send messages to the application. In the component, specify a method for handling messages with the `onmessage` attribute.

-   **[Lightning Container Component Limits](https://developer.salesforce.com/docs/platform/aura-platform/guide/container-limits.md)**  


    Understand the limits of `lightning:container`.

-   **[lightning:container NPM Module Reference](https://developer.salesforce.com/docs/platform/aura-platform/guide/container-api-reference.md)**  


    Use methods included in the lightning:container NPM module in your JavaScript code to send and receive messages to and from your custom Aura component.


