Skip to content

Instantly share code, notes, and snippets.

@FredrikOseberg
Last active August 14, 2020 04:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FredrikOseberg/d1ca7820bfa6a0f8b66a8a5d86a09d8e to your computer and use it in GitHub Desktop.
Save FredrikOseberg/d1ca7820bfa6a0f8b66a8a5d86a09d8e to your computer and use it in GitHub Desktop.
widgetName: The name to which you will refer to the widget when you call createChatBotMessage
widgetFunc: A function which returns the component you want to render. It needs to take in props and spread
the props out over the given component: (props) => <Component {...props} />
props: An array of props you want to pass to the component
mapStateToProps: An list of properties from configuration state property that you want this component to receive as props.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment