A
A
AntonVirovets2018-02-26 14:22:55
React
AntonVirovets, 2018-02-26 14:22:55

How to make an Ajax request with React js?

Hello. There is such a task: It is
necessary to write a ReactJS application that will request this json with an AJAX request: demo.omnigon.com/pgatdemo1/mikeg/products.json .
And then display the received goods in the form of a list.
But the problem is that I don’t know React yet, and I can’t find the exact information where to see how to do it. Help me to understand)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Aleksandrovich, 2018-02-26
@AntonVirovets

For Ajax requests, you can use Fetch or Axios.
I advise you to choose the second one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question