0.2.1 • Published 3 years ago

taboola-pub-react v0.2.1

Weekly downloads
-
License
GPL-3.0-only
Repository
github
Last release
3 years ago

UNDER DEVELOPMENT! DO NOT USE IN PRODUCTION!

taboola-pub-react

Taboola React component for publisher. Currently support SPA or client side version.

If you have access to html/SSR, please include this as this will help speed up.

<script async src="https://cdn.taboola.com/libtrc/{YOUR_PUBLISHER_ID}/loader.js" id="tb_loader_script"></script>

Development

Storybook is included in the repo. To test out the component in specific usage, you can create your own story component.

npm run storybook

Usage

import { Taboola } from 'taboola-pub-react';

function Article() {
  return (
    <Taboola
      url={yourUrl}
      publisherId="your-id-as-a-publisher"
      pageType="article"
      mode="taboola-mode-name"
      containerId="id-for-container"
      placement="Taboola Placement Name"
      target_type="mix"
    >
  );
}
0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago