It is recommended to use the <iframe> tag to show simple content.
<iframe src="https://www.youtube.com/embed/uXWycyeTeCs"
width={1000}
height={500}
sandbox='allow-scripts allow-modal'
loading='lazy'
title='Custom title' >
</iframe>
The sandbox attribute enables an extra set of restrictions
for the content in the iframe.
The loading attribute allows a browser to defer loading
offscreen iframes and images until users scroll near them.
loading supports two values:
lazy: is a good candidate for lazy-loading.
eager: is not a good candidate for lazy-loading. Load right away.
For more advanced use of iframes, such as rendering
an application or React component in an iframe,
please explore the article on blog.logrocket at the link below.
https: