Package Exports
- @palmabit/react-cookie-law-static-loader
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@palmabit/react-cookie-law-static-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React Cookie Law static loader
Example
<body>
<div id="_rcl-banner"></div>
<script crossorigin src="https://unpkg.com/@palmabit/react-cookie-law-static-loader@0.4.0/index.js"></script>
<script>
renderCookieBanner({
elementId: '_rcl-banner', // default "_rcl-banner"
props: {
message: 'Lorem ipsum',
// other @palmabit/react-cookie-law params
}
})
</script>
<script type="text/plain" class="_rcl">
console.log('Custom script...');
</script>
<script type="text/plain" class="_rcl_preferences">
console.log('Custom preferences script');
</script>
<script type="text/plain" class="_rcl_statistics">
console.log('Custom statistics script');
</script>
<script type="text/plain" class="_rcl_marketing">
console.log('Custom marketing script');
</script>
</body>