add cookie to your react page code example
Example: how to use cookies in react js
const [cookies, setCookie, removeCookie] = useCookies(['cookie-name']);
const [cookies, setCookie, removeCookie] = useCookies(['cookie-name']);