Skip to content

A component to embed a outbrain widget inside a react app

Notifications You must be signed in to change notification settings

Monska85/react-outbrain-widget

 
 

Repository files navigation

react-outbrain-widget

Embed your outbrain widget inside a react app

npm version

Demo

Live Demo

Installation & Usage

Note: react-outbrain-widget assumes outbrain.js was loaded before react's first rendering. Please make sure outbrain.js is loaded via a script tag on the app's index.html

npm install react-outbrain-widget --save

Include the Component

import React from 'react';
import { OutbrainWidget } from 'react-outbrain-widget';

class Component extends React.Component {
  render() {
    return (
      <OutbrainWidget dataSrc="mySite.com" dataWidgetId="AR_1" obUserId="GOOGLE_APPLE_ADVERTISING_ID" obAppVer="X.Y" />
    );
  }
}

Props

Name Type
dataSrc string
dataWidgetId string
obUserId string
obTemplate string
obInstallationKey string
obInstallationType string
obAppVer string
isSecured string

About

A component to embed a outbrain widget inside a react app

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%