There is one AEM component where HTML is getting load from the AEM component but the requirement is there should be some condition when it is true HTML should load from AEM component(i.e. sightly) and when condition is false HTML should load from the react component.