Embed your outbrain widget inside a react app
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
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" />
);
}
}
Name | Type |
---|---|
dataSrc | string |
dataWidgetId | string |
obUserId | string |
obTemplate | string |
obInstallationKey | string |
obInstallationType | string |
obAppVer | string |
isSecured | string |