-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact.txt
39 lines (34 loc) · 1.72 KB
/
react.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Required skills
- javascript or typescript (preferable)
- git
- ReactJS
- HTML/CSS
- API integration
Libraries to use
- react-router-dom
- react-bootstrap
- axios (or fetch API)
- Context API (for state management)
- node-sass or styled-components or emotion (for styling)
- typescript (recommended)
- eslint / tslint (optional)
Instructions
1. Create a React app that loads images of cats. There are 2 pages: Homepage and Single
Cat Page.
2. The homepage has a select input box where you can choose a breed of cats. Selecting
a breed should load images of cats from the API listed under the corresponding breed.
Clicking on the "Load more" button should display more images that haven't been loaded
yet. Once the images already reach the end of the list, the "Load more" button should
disappear. Selecting a different breed should clear the previous images of cats and
display a new list of images.
3. Clicking on "View details" under each image should redirect to the Single Cat Page. The
Single Cat Page should display the following data: image, breed name, origin,
temperament, and description. Clicking "Back" at the top of the Single Cat Page should
go back to the homepage with the current breed already selected, therefore, the
Homepage should immediately load images of cats under the previously selected breed.
4. The API to use is at https://docs.thecatapi.com/. It is your responsibility to study and
figure out the correct endpoints to use. Please, handle any possible API exceptions by
notifying the user that fetching has failed. Message as an alert / banner: “Apologies but
we could not load new cats for you at this time! Miau!”
5. Commit all code to a git repository and invite me
I think you need to use this api: https://thecatapi.com/.