admin 管理员组文章数量: 1086019
I have a small form ponent built using React that I want to make into an embeddable widget for use on other pages. I believe I heard Babelify can help acplish this, but I'm honestly drawing a blank on how to get this working. I used Babelify to create a bundle.js of the form ponent, but sticking that on to a blank HTML page using <script src='bundle.js'></script>
didn't do anything. So clearly I am either misunderstanding something or am just...totally lost.
I have a small form ponent built using React that I want to make into an embeddable widget for use on other pages. I believe I heard Babelify can help acplish this, but I'm honestly drawing a blank on how to get this working. I used Babelify to create a bundle.js of the form ponent, but sticking that on to a blank HTML page using <script src='bundle.js'></script>
didn't do anything. So clearly I am either misunderstanding something or am just...totally lost.
1 Answer
Reset to default 5Created an embeddable widget with react by following this tutorial http://krasimirtsonev./blog/article/javascript-library-starter-using-webpack-es6
本文标签: javascriptCreate an embeddable widget using ReactStack Overflow
版权声明:本文标题:javascript - Create an embeddable widget using React - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1744002903a2516775.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论