I want to generate an embedded code from my ReactJS application. I really don't know how can I achieve such functionality?

for example, I want to generate a code which can be used in another website using the iframe, same like youtube embedded code.

Thanks in advance.