'Sending Java server data to a React front end

Here is what I've done so far: There is an API (Hacker News - https://github.com/HackerNews/API) from which I send a GET request from my Java program and retrieve the data. I am able to parse the (JSON) data so that it can be manipulated by the JDK.

Here is what am trying to do next: I want to have my Java program/server communicate with my React application so that React can retrieve the parsed JSON data and display it on a webpage.

Confusion: How do I have React get the data? Do I set it up so that it sends a GET request from my Java server? I have consulted more tutorials than I can count, but I am simply not understanding how to do it.

My code can be found here https://github.com/EmekaEnshinyan/HackerNews-API-Design-Back-End



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source