Skip to content

dai-570415/react-getapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[React Practice] External API communication with React

Data download & construction

$ git clone https://github.com/dai-570415/react-getapi.git

$ cd react-getapi

$ npm install

$ npm start

Put each API key in "YourKey"

// components/News/Index.js
// NEWS API(https://newsapi.org/) 
const URL = `https://newsapi.org/v2/top-headlines?country=jp&apiKey=YourKey`;
// components/Gourmet/Index.js
// ぐるなび API(https://api.gnavi.co.jp/api/)
const keyId = 'YourKey';

About

This is a package that has API communication with React.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published