N
N
N4sky12019-06-16 10:21:47
JavaScript
N4sky1, 2019-06-16 10:21:47

React data from api crookedly comes to the component, what's the problem?

Hello, I'm doing a pet project, I'm still a beginner in React, I'm asking for advice, I've been looking for it myself, but I'm not looking very well or I don't understand what.
In general, I work with api giphy.com, a request is entered into the input, it goes to the api, a response comes, the response goes to the component, the data array is visible in the console, but it is rendered from the second button press - send the request, I assume that the matter is updating the component, but I didn’t find a solution in the docks, I probably didn’t understand
the links to the github to the files
https://github.com/N4sky1/Gifs/blob/master/src/App.js
https://github.com/N4sky1/ Gifs/blob/master/src/com...
https://github.com/N4sky1/Gifs/blob/master/src/com...
thanks for any replies

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Epifanov, 2019-06-16
@N4sky1

gist

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question