This question is a bit popular but Im not having such luck. Im mostly a backend person so Im learning as I go along.
I have a cookie named connect.sid and v
connect.sid
You can start by npm install react-cookiethen import { Cookies } from 'react-cookie' and finally cookies.get('connect.sid'):
npm install react-cookie
import { Cookies } from 'react-cookie'
cookies.get('connect.sid')
don't forget to wrap your root app inside CookiesProvider something like so :
CookiesProvider
You can find an example here