I'm writing a functional ReactJS app that search for GitHub users and displays them in a list. The user list should display the number of user repositories. But the problem is that I don't know how to get a list of repositories for each user, but I only know how to search for the repositories of one specific user.
On the main page, I search for users whose names match the input value and get a list of matches. If I go to the page of this user, then in it I can already get a list and the number of repositories of this user, but for this I have to send a separate request to the server for the user.
Is there any solution that will allow me to display the number of repositories for each user on the main page?
Inside Sanbox my code is unstable, but i hope, the main point must be clear
Finally it should looks like this, but instead ## symbols should be count of repos each users
question from:https://stackoverflow.com/questions/66066463/how-to-get-data-from-github-api