React Reference
HotglueConfig
HotglueConfig component reference
Description
The HotglueConfig
is a higher order component that must be included in order for the @hotglue/widget
package to function correctly.
Usage
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.
index.js
Properties
config
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 |