New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@taboola/taboola-react-web

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@taboola/taboola-react-web

Taboola React Plugin for the Open Web. Embed Taboola in React projects.

latest
npmnpm
Version
0.5.0
Version published
Maintainers
5
Created
Source

taboola-react-web

Taboola React Plugin for the Open Web - BETA. Using this plugin is subject to Taboola's terms of use and privacy policy. Embed Taboola in React projects.

NPM JavaScript Style Guide

Install

npm install --save @taboola/taboola-react-web

Usage

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>

Main Workflow

import TaboolaComponent from '@taboola/taboola-react-web'

function Article() {
  return (
    <TaboolaComponent
      canonicalUrl={yourPageCanonicalUrl}
      publisherId="your-id-as-a-publisher"
      pageType="article"
      mode="taboola-mode-name"
      containerId="id-for-container"
      placement="Taboola Placement Name"
      targetType="mix"
      custSeg="subscriber"
    >
  );
}

Props

PropsTypeDefaultRequired
canonicalUrlstring${yourCurrentUrl}no
publisherIdstringundefinedyes
pageTypestringundefinedyes
modestringundefinedyes
containerIdstring${mode}-${placement}no
placementstringundefinedyes
targetTypestringmixno
custSegstringnoneno

License

MIT © Taboola

FAQs

Package last updated on 14 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts