title: How to create a real-time React application?
body: <p>I want to create a real-time news application. Just think of a list of countries and the news about that country next to the country name. But the news column should be automatically updated when new news is added to the API.
  For Example, I have this endpoint: <a href="https://newsdata.io/api/1/news?apikey=YOUR_API_KEY&amp;country=au" rel="nofollow noreferrer">https://newsdata.io/api/1/news?apikey=YOUR_API_KEY&amp;country=au</a>
  In this case, the country is Austria. How can my react application automatically checks the server and fetch the data if there is an update?
  I don't want to use setInterval to check it in specific time ranges, can socket io be used in this case?</p>