React and React Router – A really very basic and simple Cookie Banner

  banner, cookies, javascript, react-router, reactjs

I’m working on React applications. I need a really very simple Cookie banner. The one that informs that the website uses cookies. There are various (theoretically simple) solutions in npm packages, but they all cause some problems in my projects. I have the impression that they are overdesigned, although they are supposed to be simple.

My projects mainly based on React with React Router.

Source: Ask Javascript Questions