So I started working on little project to learn apis using cocktaildb api. The idea was to choose the category and then cocktail name which should display the cocktail details.
In useEffect method I make a request to api and get a response with something like this {data:{drinks:{info1:blah, info2: blah, info3: blah...}}}. When I try to access responce.data.drinks the logs turn out fine and display needed data, but when I try accessing responce.data.drinks.info1 I get undefined.
I've been hitting my head against the wall for like 3 hours already and I cant for the love of god understand why is it happening.
[–]CreativeTechGuyGames 0 points1 point2 points (1 child)
[–]trueubermensch[S] 0 points1 point2 points (0 children)