mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 21:15:18 +09:00
Ref https://github.com/webstudio-is/webstudio-builder/issues/1563 Looks like dangerouslySetInnerHtml is quite safe and do not allow to break outside layout. Plus as important point it works with ssr. To execute scripts while injecting used range hack described here https://ghinda.net/article/script-tags. innerHTML does not execute scripts.
Webstudio SDK
Webstudio SDK is a TypeScript API that lets you use your Webstudio site or some components in your custom codebase or just render a complete Remix Document. It is currently under development, but feel free to play with the the current landing site