Settings

Theme

Show HN: React-cookie-banner – A cookie banner for React with minimal config

github.com

1 points by bennett_dev a year ago · 0 comments · 1 min read

Reader

Hi HN,

I built a React library that aims to simplify making websites GDPR-compliant with a fully integrated cookie banner solution.

I found existing solutions to be too simple (just giving an "Accept" button which isn't compliant) or too complex (requiring a lot of configuration and setup or paid external services). With this library, services simply need to be wrapped inside a `CookieService` component and the library will take care of the rest, handling:

- Displaying a cookie banner - Managing/storing user consent - Conditionally loading external scripts based on consent - Google Consent Mode - Multi-language support and customization

Would love to hear thoughts, feedback, or suggestions!

Live demo: https://vantezzen.github.io/react-cookie-banner/

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection