UseCookies in reactjs not working well

If you’re using the react-cookie library that turns up as the first Google result, then the first value in the array that the useCookies isn’t a cookie, it’s a object with some functions attached to it. One of those lets you pick a specific cookie (like cookies.get, as in the examples). You could have many cookies present, it can’t just be a single thing

If that isn’t the library you’re using, I’m just guessing here, then, again, you need to actually say what the useCookie function is.