1.0.4 • Published 2 years ago

react_quickwrap_component v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago