Search page with Metropolitan Museum of Art API and React Hooks
Use the Metropolitan Museum of Art API to build a UI for searching their collection.
utils/debounce.js
(reference: https://dev.to/gabe_ragland/debouncing-with-react-hooks-jci)npm install
or yarn
npm start
or yarn start
yarn add --dev eslint
yarn run eslint --init
yarn add eslint-config-prettier
Metropolitan Museum of Art API
Object
GET /public/collection/v1/objects/[objectID]
A record for an object, containing all open access data about that object, including its image (if the image is available under Open Access)
Search
GET /public/collection/v1/search
A listing of all Object IDs for objects that contain the search query within the object’s data
Components
Containers