I am interested in displaying a remote URL in my react modal
I may get data of that URL using AJAX call but how may I render that exact URL in my modal?
Any help would be appreciated...
There are a few options:
You can execute when opening the modal or use onAfterOpen.
iframe on the modal.Thanks @diasbruno ...
Your option 2 was easy to pursue.
I used iframe on the modal and
window.open(link,'NewWindow','resizable=yes'); without modal
Most helpful comment
There are a few options:
1. Make an request and save the data on some state. Render in the Modal afterwards.
You can execute when opening the modal or use
onAfterOpen.2. Add an
iframeon the modal.