Skip to content

joinditto/react-timely-plugin

Repository files navigation

react-timely

Load ditto timely scheduler from any ditto sites

Usage

import React, { Component } from 'react'

import { TimelyProvider, openPopupWidget } from 'react-timely'

class Example extends Component {
  handleClick() {
    openPopupWidget({
      url: 'http://localhost:3001/event/9c6e37e0-662f-4824-81f4-a38fcca2bc75/book',
      utm: {
        utmTerm: 'TestTerm',
        utmCampaign: 'TestCampaign',
        utmContent: 'TestContent',
        utmMedium: 'TestMedium',
        utmSource: 'TestSource'
      }
    })
  }

  render() {
    return (
      <TimelyProvider>
        <button onClick={handleClick}>Open Timely </button>
      </TimelyProvider>
    )
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •