ocrcc-chatbox/README.md
2018-05-26 14:53:54 -04:00

2.1 KiB

Embeddable React Widget

Easy creation of an embeddable widget.

Goal

The create-react-app of embeddable widgets.

Features

  • Full ES6/ES2015 support (with Babel)
  • Package fonts, css, json, javascripts together into one simple repository (with Webpack)
  • No css tyling conflicts between the host page and the widget (with https://github.com/premasagar/cleanslate)
  • Obfuscating of the widget code

What is an emeddable widget?

  • Usable using a simple <script> tag
  • Configurable with code

Why not in an iframe?

  • Interaction between the frame and the hosting page is tricky and not recommended
  • You can only display content within the iframe
  • iframe and content resizing is impossible
  • iframe sandboxing can result in missing functionalities

Roadmap

  • index.html works (webpack, babel, react)
  • webpack changed to output a library
  • react widget

Links

Best