Hi @Bharath_Prakash ,
Good day!
Yes, you cannot refer the component name as a template as the template would expect a .html
file. But, you can use the instance API and achieve the same.
The below threads covers similar solutions you are looking for with a code snippet
In case of a single modal,
if the app has multiple modals,
Note: The react zip over the thread using platform version 2.0(deprecated), you would be required to change it to >=2.2. Please find the updated zip below.
react-modal.zip (346.3 KB)
Kindly take a look at it and let us know if you need anymore help/guidance on this.
Hope this helps!