1.0.0 • Published 4 years ago

react-carrotquest-module v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Build Status npm version npm downloads

react-carrotquest

React CarrotQuest Manager Module

Installation

npm:

npm install react-carrotquest-module --save

Usage

Initializing CarrotQuest Module:

import React from 'react'
import ReactDOM from 'react-dom'
import Router from 'react-router'
import routes from './routes'

...
import CarrotQuestManager from 'react-carrotquest-module'

const carrotQuestManagerArgs = {
  carrotQuestId: '12345-b52c96bea30646abf8170f333b'
}

CarrotQuestManager.initialize(carrotQuestManagerArgs)
...

const app = document.getElementById('app')
ReactDOM.render(<Router routes={routes} />, app)
ValueTypeRequiredNotes
gtmIdStringYesGTM id, must be something like 12345-b52c96bea30646abf8170f333b.

Note:

  • Disabling javascript in the browser can prevent the correct operation of this library if React is only being rendered on the client side.