Skip to content

Instantly share code, notes, and snippets.

View mkezfarias's full-sized avatar
🤠
Wears many hats*

Luis Puente mkezfarias

🤠
Wears many hats*
View GitHub Profile
@oak-wildwood
oak-wildwood / CalendlyEmbedReact.js
Last active September 13, 2022 00:08
Calendly Embed React component
import React from 'react';
class CalendlyEmbed extends React.Component {
calendlyScriptSrc = 'https://assets.calendly.com/assets/external/widget.js'
buildCalendlyUrl = (account, eventName) =>
`https://calendly.com/${account}/${eventName}`
componentDidMount() {
const head = document.querySelector('head')
const script = document.createElement('script')