Skip to content

Conversation

cmhorsey
Copy link

Practiced writing a fetch request with useEffect to display image from dog API.

Copy link

@stephenmckeon stephenmckeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

Comment on lines +16 to +20
return (
<div>
<img src={image} alt="A Random Dog" />
</div>
)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to wrap in a div here:

Suggested change
return (
<div>
<img src={image} alt="A Random Dog" />
</div>
)
return (
<img src={image} alt="A Random Dog" />
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants