@animalresearch/woopra-react

1.0.0 • Public • Published

Woopra React

Woopra wrapper for React

Install

Use npm:

npm install @animalresearch/woopra-react

Usage

Import the component into your index.js

import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import WoopraTracker from '@animalresearch/woopra-react';

ReactDOM.render([
  <WoopraTracker config={{
    domain: 'example.com'
  }} />,
  <React.StrictMode>
    <App />
  </React.StrictMode>,
], document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();

Readme

Keywords

Package Sidebar

Install

npm i @animalresearch/woopra-react

Weekly Downloads

63

Version

1.0.0

License

MIT

Unpacked Size

2.7 kB

Total Files

3

Last publish

Collaborators

  • pandres95