Implement a more in-depth example of lightning:container with the code included in https://github.com/developerforce/LightningContainerExamples. This example uses React and lightning:container to show a real estate listing app in a Lightning page.
To implement this example, use npm. The easiest way to install npm is by installing node.js. Once you’ve installed npm, install the latest version by running npm install --save latest-version from the command line.
To create custom Lightning components, you also need to have enabled My Domain in your org. For more information on My Domain, see My Domain in the Salesforce Help.
The component and handler code are similar to the examples in Sending Messages from the Lightning Container Component and Handling Errors in Your Container.