react embedding #423
-
Hello! I found some solution, but it didn't work. please help me!
If you have a example of React version, please share it! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
when talking to an iframe you will need to set up communication using messages: https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage the "iframe export" also isn't really an export, the patch will still reside on cables.gl server and change when you work on the patch. this is not really advised to do in a "production environment" where the other exports are more suited. you are then still free to embed your downloaded patch in an iframe though obviously. regarding react, you might have some success with https://www.npmjs.com/package/react-script-tag but it has been some time since i last integrated cables into react/vue/... |
Beta Was this translation helpful? Give feedback.
-
hey, i quickly created this small react component to load one or more patches to your website in react. might be useful for some people. let me know if this works for you. |
Beta Was this translation helpful? Give feedback.
hey,
i quickly created this small react component to load one or more patches to your website in react. might be useful for some people. let me know if this works for you.
https://github.com/undev-studio/cables_react