I am getting above error in my code. The code is
{ !get_cookie('token') ?
<div className="sign-in-option"><Link href="/signin" className="nav-item">Signin</Link></div> :
<svg className="icon icon-Vector">
<use xlinkHref="/images/svg/sprite/sprite.svg#icon-Vector"></use>
</svg>
}
If i remove cookie condition i will not get above error. From the error i understand that rendered Html is not able to match to the html returned by server. As get_cookie is a method to get cookie stored on browser. So server is returning something else.
How can i fix this issue.
