Description
TheHotglueConfig is a higher order component that must be included in order for the @hotglue/widget package to function correctly.
Usage
Since theHotglueConfig is a provider, it should be included near the entrypoint of your React app. Below is an example of including in the index.js of a create-react-app structure.
index.js
Properties
config
Theconfig property is an object which is used to connect to your hotglue environment. The object takes the following parameters:
Implementation notes
- The
<HotglueConfig>component should live at a common ancestor of all the places in your code where you simultaneously use the widget. Multiple copies of the<HotglueConfig>component can not be mounted simultaneously.