Getting data from the Twitter Streaming API
The data for our React application will come from Twitter. Twitter has a Streaming API that anyone can plug into and start receiving an endless flow of public tweets in the JSON format.
To start using the Twitter Streaming API, you'll need to perform the following steps:
Create a Twitter account. For this, go to https://twitter.com and sign up; or sign in if you already have an account.
Create a new Twitter app by navigating to https://apps.twitter.com, and click on Create New App. You will need to fill the Application Details form, agree with Developer Agreement, and click on Create your Twitter application. Now you should see your application's page. Switch to the Keys and Access Tokens tab.
In the Application Settings section of this page, you'll find two vital pieces of information:
Consumer Key (API Key), for example,
jqRDrAlKQCbCbu2o4iclpnvem
Consumer Secret (API Secret), for example,
wJcdogJih7uLpjzcs2JtAvdSyCVlqHIRUWI70aHOAf7E3wWIgD
Take a...