| Start |
|---|
| HTTP GET request Sometimes a component needs to render some data from a remote endpoint (e.g. a REST API). A standard practice (opens new window) is to make such calls in Here is an example, using superagent (opens new window) as AJAX helper: A request can be initiated by invoking the appropriate method on the The POST requests See Superagent docs (opens new window) for more details. |
| HTTP GET request and looping through data The following example shows how a set of data obtained from a remote source can be rendered into a component. We make an AJAX request using We set the data we receive as component state, so we can access it inside the render method. There, we loop through the data using |
| Ajax in React without a third party library - a.k.a with VanillaJS The following would work in IE9+ |
Read Article
https://develop.horje.com/learn/1434/reference