Closed ilPas closed 1 year ago
Hi @ilPas
You can use the package with React by following the Javascript instructions in the README. I'm afraid I don't use React so I can't give any more specific instructions.
I try but i'm not expert, there is an error
_beyonk_gdpr_cookie_consent_banner__WEBPACK_IMPORTED_MODULE_6___default(...) is not a function
Sadly I'm not a React or Webpack user. From what you've listed there, it seems like your webpack configuration isn't quite correct, since the default export of the esm
bundle is a function called attachBanner
which is indeed a function.
Example with react. https://codesandbox.io/p/sandbox/gifted-tess-jg7yo1
As I can understand this library just provide some ui for GDPR
is this work for astro.build?
I've never tried, but yes, it should work with anything.
Is in roadmap? Or is there a possibility to use this awesome package with React?
Thanks a lot