I have a cookie on my browser and I want to read it with react, I use it like that:
import Cookies from 'js-cookie';
console.log(Cookies.get('cookieName1'));
when I run it, I get undefined
on the console, but, the cookieName1 have a value on my cookies.
How can I fix it ?