react_quickwrap_component
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Usage

import React from 'react'

import { QuickwrapProvider, QuickwrapSlot } from 'react_quickwrap_component'

..

return (
  <QuickwrapProvider uuid='YOUR_QUICKWRAP_UUID'>
    <QuickwrapSlot id='AD_UNIT_DIV_ID_MATCHING_QUICKWRAP_CONFIGURATION'/>
  </QuickwrapProvider>
)

QuickwrapProvider context component should be placed at the top of your React app. It is responsible for injecting Quickwrap Wrapper scripts, initializing variables and storing helper data.

name type required description
uuid string false Quickwrap UUID required to load Wrapper script.

QuickwrapSlot is a simple ad component, as a form of QuickWrap smarttag React wrapper. It is responsible for rendering ad in specified place. You can use it with following properties:

name type required description
id string true name of DIV ID of given adUnit configured in QuickWrap panel

License

MIT © YieldbirdDev

Readme

Keywords

none

Package Sidebar

Install

npm i react_quickwrap_component

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

10.9 kB

Total Files

19

Last publish

Collaborators

  • yieldbird-yak