HotglueConfig component reference
The HotglueConfig
is a higher order component that must be included in order for the @hotglue/widget
package to function correctly.
Since the HotglueConfig
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.
The config
property is an object which is used to connect to your hotglue environment. The object takes the following parameters:
Name | Description | Required |
---|---|---|
apiKey | Your public environment api key | true |
envId | Your environment id Usually something like dev.hotglue.acme.com | true |
options | An options object | false |
<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.HotglueConfig component reference
The HotglueConfig
is a higher order component that must be included in order for the @hotglue/widget
package to function correctly.
Since the HotglueConfig
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.
The config
property is an object which is used to connect to your hotglue environment. The object takes the following parameters:
Name | Description | Required |
---|---|---|
apiKey | Your public environment api key | true |
envId | Your environment id Usually something like dev.hotglue.acme.com | true |
options | An options object | false |
<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.