It took me sometime to figure out how to use this with SSR for our project, hopefully it goes to show someone.
For your component with cookies defined you only need to import CookieBannerUniversal.
Use as below
<CookieBannerUniversal {...props} >
{this.props.children}
</
It took me sometime to figure out how to use this with SSR for our project, hopefully it goes to show someone.
For your component with cookies defined you only need to import CookieBannerUniversal. Use as below <CookieBannerUniversal {...props} > {this.props.children} </
In your Client.js
const convertCookieToString = (cookieArray) => { //do something to convert your array to normalized string. //e.g "a=1;b=2" return arrayTostring }
const serverCookiesArray = array({'a': '1'}, {'b' : '2'} )
const cookies = new Cookies(convertCookieToString(serverCookiesArray)) const app = (
const render = renderToString(app)