@aditudeinc/cloud-wrapper-react
v0.0.1
Published
<p align="center"> <a href="https://aditude.io/" target="_blank"> <img src="https://cloud.aditude.io/_next/static/media/aditude-symbol-mono.b458f727.svg" alt="Aditude" width="150"> </a> </p>
Downloads
2
Readme
Get Started
Basic Install
npm install @aditudeinc/cloud-wrapper-core
Basic Usage
Methods
lazyloadDivs
<div id="my-div-id-i-want-to-load-an-ad"></div>
import { lazyloadDivs } from '@aditudeinc/cloud-wrapper-core'
lazyloadDivs(['my-div-id-i-want-to-load-an-ad'])
refreshAdsViaDivMappings
<div id="my-div-id-to-load-an-ad"></div>
import { refreshAdsViaDivMappings } from '@aditudeinc/cloud-wrapper-core'
// must run after the div is rendered on the page
refreshAdsViaDivMappings([
{
baseDivId: 'left-1',
divId: 'my-div-id-to-load-an-ad',
}
])