https://github.com/killmenot/react-carrotquest
React CarrotQuest Manager
https://github.com/killmenot/react-carrotquest
Last synced: about 1 year ago
JSON representation
React CarrotQuest Manager
- Host: GitHub
- URL: https://github.com/killmenot/react-carrotquest
- Owner: killmenot
- License: mit
- Created: 2020-01-26T20:50:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-26T21:59:45.000Z (over 6 years ago)
- Last Synced: 2025-03-18T13:04:40.330Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/killmenot/react-carrotquest)
[](https://www.npmjs.com/package/react-carrotquest-module)
[](https://www.npmjs.com/package/react-carrotquest-module)
# react-carrotquest
### React CarrotQuest Manager Module
## Installation
[npm](https://www.npmjs.com/):
```bash
npm install react-carrotquest-module --save
```
## Usage
Initializing CarrotQuest Module:
```js
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(, 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.