react-adroll
v0.1.7
Published
Adroll Events for React
Downloads
49
Maintainers
Readme
react-adroll
React JS wrapper for Adroll Pixell
Install
npm install react-adroll
or
yarn add react-adroll
How to use
import ReactAdroll from 'react-adroll';
ReactAdroll.init('yourPixelIdGoesHere', 'yourAdvIdGoesHere', (debug = false));
ReactAdroll.recordUser('event_segment_id');
Dev Server
npm run start
Default dev server runs at localost:8080 in browser. You can set IP and PORT in webpack.config.dev.js
Production Bundle
npm run bundle