Skip to content

Instantly share code, notes, and snippets.

@gHashTag
Created April 19, 2018 10:14
Show Gist options
  • Select an option

  • Save gHashTag/6be3552b239af8cd98555d49af2b951a to your computer and use it in GitHub Desktop.

Select an option

Save gHashTag/6be3552b239af8cd98555d49af2b951a to your computer and use it in GitHub Desktop.
import React, { Component } from 'react'
import './class.css'
class Classes extends Component {
constructor () {
super()
this.state = {
show: true
}
}
componentDidMount () {
this.addScript()
}
addScript () {
const script = document.createElement('script')
script.src = 'https://widgets.healcode.com/javascripts/healcode.js'
script.async = true
document.body.appendChild(script)
}
show () {
this.state()
}
render() {
return (
<healcode-widget data-type='schedules' data-widget-partner='object' data-widget-id='473784925a0' data-widget-version='0.1'></healcode-widget>
)
}
}
export default Classes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment