I need to create a custom widget like this where I can give user the code within the script tag and they can include that into their own website.It would be better if it can be built on React.
Asked
Active
Viewed 446 times
1 Answers
0
You can use an iframe to embed a some web content from your web server on another page.
A widget builder usually generates code that contains an iframe and points to a page (or route on your server that generates a page) with various URL parameters that allow the look and contents of the widget to be customised by the widget creator.
Edit: Script tag widgets usually inject an iframe or HTML retrieved from your web server

Spooze
- 378
- 1
- 10