2.5.0 • Published 3 years ago
@s-ui/react-tcf-services v2.5.0
TcfServices
Description
Installation
$ npm install @s-ui/react-tcf-services
Usage
Basic usage
import TcfServices from '@s-ui/react-tcf-services'
return (
<TcfServices>
{service => (
<TCFContainer
getVendorList={() => service.getVendorList()}
loadUserConsent={() => service.loadUserConsent()}
saveUserConsent={({purpose, vendor}) =>
service.saveUserConsent({purpose, vendor})
}
/>
)}
</TCFServices>)
Find full description and more examples in the demo page.