Skip to content

Instantly share code, notes, and snippets.

@jackfranklin
Created April 24, 2018 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jackfranklin/289f969fb952ab0b72b93b929361986b to your computer and use it in GitHub Desktop.
Save jackfranklin/289f969fb952ab0b72b93b929361986b to your computer and use it in GitHub Desktop.
class CollectPlus extends Component {
componentDidMount() {
setupClickAndCollect(this.collectPlusContainerRef, this.props.apiKey)
}
render() {
return <div ref={div => this.collectPlusContainerRef = div} />
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment