Day 62: React Course on Udemy

React AJAX Requests

  1. AJAX stands for Asynchronous Javascript and XML.
  2. It is the use of the XML HTTP Request object to communicate with servers.
  3. Information can be sent and received in various formats including JSON, XML, HTML, and text files.
  4. Its asynchronicity allows it to communicate with the server, exchange data, and update the page without having to refresh the page.
  5. It can receive and work with data from the server.

API

  1. Stands for Application Program Interface
  2. It specifies how software components should interact, using a set of routine protocols and tools used for building software.

By hitting the Star Wars API (SWAPI), we were able to create a list of Star Wars characters and display them to the DOM. It looks super simple but there was quite a bit of code in the background.