7.3 - Github API Card
The purpose of this next component is to structure the data that we get from any data resource, whether that be an API or from a file.
Let's create a new component called GithubCard
You will notice that we are expecting 3 different props:
props.avatar_url
props.name
props.company
What do you think will happen if a value is not provided or not found? (food for thought).
Last updated