buildo / react-cookie-banner

React Cookie banner which can be automatically dismissed with a scroll. Because fuck The Cookie Law, that's why.
http://react-components.buildo.io/#cookiebanner
MIT License
182 stars 19 forks source link

Banner not being displayed #55

Open safinn opened 6 years ago

safinn commented 6 years ago

My component:

import { Cookies, CookiesProvider, CookieBannerUniversal } from 'react-cookie-banner';

const cookies = new Cookies();

export default () => (
  <CookiesProvider cookies={cookies}>
    <CookieBannerUniversal         
      dismissOnScroll={false}
    />
  </CookiesProvider>
)

I get the browser message Warning: Did not expect server HTML to contain a <div> in <div>.

Even using the standard non SSR method it does not show with the same message. I'm using Next.js