Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 731 Bytes

README.md

File metadata and controls

44 lines (33 loc) · 731 Bytes

Embedded React Widget

  • Embedded React Widget to deploy on your website.

Demo

Running the widget

Install dependencies

$ npm install

Start the development server

$ npm start

Production build

$ npm run build
... create files in /dist

How to add Embedded widgets to you website?

  • Add /dist/widget.js file to your project.
  • import widget.js file.
    <script src="./widget.js"></script>
    
  • Mount EmbeddableWidget.
` <script>
      EmbeddableWidget.mount();
  </script>

Acknowledgments

I found helpful guidance in this project from the following site:

https://github.com/seriousben/embeddable-react-widget