最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Create an embeddable widget using React - Stack Overflow

programmeradmin3浏览0评论

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.

Share Improve this question asked Jan 11, 2018 at 0:20 demluckycharmsdemluckycharms 4211 gold badge6 silver badges17 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

Created an embeddable widget with react by following this tutorial http://krasimirtsonev./blog/article/javascript-library-starter-using-webpack-es6

发布评论

评论列表(0)

  1. 暂无评论