/fetch-news

Fetching data from the News API with React Hooks - https://fetch-news.netlify.com

Primary LanguageJavaScript

This app fetches TechCrunch articles from the News API. I used the native Fetch API to make the request from within React's new useEffect hook. My API key is sent through the headers object which is used by the News API to verify my identity. The API key itself is hidden as an environment variable.

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.