Question
How to render react component in aem component
I want to load the react component in AEM component. How will I mount the react component for a div in aem.
<sly data-sly-test="${properties.loadFromReactFlag}">
<div id="react-container"></div>
</sly>
<sly data-sly-test="!${properties.loadFromReactFlag}">
<p>Loaded from AEM</p>
</sly>
For id="react-container" this div I want to load the HTML from the react component.