Skip to content Skip to sidebar Skip to footer

ReactJS Load Function “is Not A Function”

I'm setting up a react-cookie npm package but trying to load cookies as to call users but getting a not a function. How do I set up this correctly? This is what I had tried right n

Solution 1:

You are probably looking for get method on Cookies

  var user = Cookies.get('user');

https://github.com/reactivestack/cookies/tree/master/packages/react-cookie#getname-options


Post a Comment for "ReactJS Load Function “is Not A Function”"