0.2.0 • Published 4 years ago
react-tv-cmp-test v0.2.0
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/