改善
小さな修正
reducers/imageUrls.js
// 初期値を空に
const initialState = [];components/ImageList.js
import React from "react";
const ImageList = ({ urlList }) => {
const list = urlList.map(url => {
return (
<li key={url}>
<img src={url} alt="" />
</li>
);
});
return <ul>{list}</ul>;
};
export default ImageList;APIs/giphyAPI.js
ロード状況をボタンに表示する
reducers/buttonText.js
reducers/index.js
containers/Search.js
components/Search.js
actions/getUrls.js
CSS でスタイリングをする
index.js
App.css
components/ImageList.js
Last updated