0.4.1 • Published 4 years ago

@tdcerhverv/react-utils v0.4.1

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
4 years ago

React utils from TDC

Installation

npm i @tdcerhverv/react-utils

Usabilla

import { UsabillaWidget } from '@tdcerhverv/react-utils';

function SomeComp() {
  return (
    <div>
      <SomeOtherComp />
      <UsabillaWidget
        usabillaId="8765432"
        widgetId="123456"
       />
    <div>
  )
}

if more information is need the category, subCategory and item can be added

import { UsabillaWidget } from '@tdcerhverv/react-utils';

function SomeComp() {
  return (
    <div>
      <SomeOtherComp />
      <UsabillaWidget
        usabillaId="8765432"
        widgetId="123456"
        category="test"
        subCategory="page 1"
        item="function 1"
       />
    <div>
  )
}

This is the props that the widget accepts.

type UsabillaWidget = {
  widgetId: string;
  usabillaId: string;
  category?: string;
  subCategory?: string;
  item?: string;
};

Google Tag Manager

import { gtmPush } from '@tdcerhverv/react-utils';

gtmPush({
  category: '',
  action: '',
  event: '',
  value: '',
  label: ''
});
0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago