0.2.0 • Published 3 years ago

react-tv-cmp-test v0.2.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

React Appconsent CMP for TV

Install

npm install --save appconsent-react-tv-cmp

Use

Import the component and use it as follows:

import AppconsentCMP from 'appconsent-react-tv-cmp'

function App() {
  const config = {
    appKey: 'YOUR_APP_KEY',
  }

  const useCMP = (cmp) => {
    cmp.init(config)
    cmp.show({ lazy: true })
  }

  return (
    <main>
      <AppconsentCMP onReady={useCMP} />
    </main>
  )
}

Full documentation

Find out more on https://sfbx.gitbook.io/appconsent/