I created a User Context API (code here: https://pastebin.pl/view/e0b5e0f4), then I can read it like this:
const { state: { user }, dispatch} = useUserContext();