You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I have been working on my react application.
This application was aiming to render web developers from GitHub, so I used the: Users Github REST API
Learning #1
When you use the API, make sure you see in your browser all the users, BEFORE you try to fetch the data. How?
Just use api.github.com/users
Learning #2
After seeing the 30 repos, by default the rate limit of the API is 30 (I wondered myself and this is it), proceed to fetch with useEffect hook and make sure the data is being fetched by logging it first before rendering.
Tip: make your code much cleaner by using props to render the data, so create a component and pass it down to the parent to render whatever info you need.
if you are learning play around and implement a search functionality feature to search by username (GitHub finder by traversy media for example) or create your own.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi dear coding buddies,
Today I have been working on my react application.
This application was aiming to render web developers from GitHub, so I used the:
Users Github REST API
#1
When you use the API, make sure you see in your browser all the users, BEFORE you try to fetch the data. How?
Just use api.github.com/users
#2
After seeing the 30 repos, by default the rate limit of the API is 30 (I wondered myself and this is it), proceed to fetch with useEffect hook and make sure the data is being fetched by logging it first before rendering.
Tip: make your code much cleaner by using props to render the data, so create a component and pass it down to the parent to render whatever info you need.
if you are learning play around and implement a search functionality feature to search by username (GitHub finder by traversy media for example) or create your own.
Beta Was this translation helpful? Give feedback.
All reactions