1.0.0 • Published 4 years ago
react-carrotquest-module v1.0.0
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)
Value | Type | Required | Notes |
---|---|---|---|
gtmId | String | Yes | GTM 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.
1.0.0
4 years ago