I'm having problem with useEffect it fired twice when the page rendered my code below
useEffect(() => {
if (!jwt) {
console.log('you are not login');
} else {
console.log(cookie.GREEN_COOKIE);
}
fetchEvents();
}, []);