Show HN: React-cookie-banner – A cookie banner for React with minimal configHi 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 customizationWould love to hear thoughts, feedback, or suggestions!Live demo: https://vantezzen.github.io/react-cookie-banner/

Ask HN: What is the simplest way to add a GDPR cookie consent to the website?Having a GDPR compliant cookie consent on a website is a common enough requirement today. I assume there should be a few "out of the box" solutions for it. So, I wonder what is the simplest way to add a GDPR compliant cookie consent to the website and block *third-party* cookies should the users chose so? Are there any open-source solutions for this that rely on Javascript only (no back end involved)?
