react-startdeliver
This is a JavaScript module that can be used to include startdeliver-usage-js code in a website or app that uses its React codebase.
Install
npm install --save react-startdeliver
Usage
import React Component from 'react';import Startdeliver from 'react-startdeliver'; { // To get the script to accept usage events, initiate it with your usage id... Startdeliver; // Call the function with sendEvent as first param and an object containing userId (the users email) and usageType // startdeliverUserFieldToMatchOn and timestamp are optional Startdeliver; // Call the function with sendEvent with default startdeliverUserFieldToMatchOn ( 'email' ) Startdeliver; } { return <div>Example of usage Startdeliver App</div>; }
License
MIT © Startdeliver