MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/reactjs/comments/f86l9f/beginner_requesting_a_code_review_and_advice/fijidcu/
r/reactjs • u/[deleted] • Feb 23 '20
[deleted] — view deleted post
25 comments sorted by
View all comments
Show parent comment
0
[deleted] — view deleted comment
3 u/annoying_mammal Feb 23 '20 You will always render the weatherdata regardless but since the fields are empty the h3 headers well not render. But you need to wrap the image in a condition so it will not be rendered unless weatherdata.icon is not an empty string.
3
You will always render the weatherdata regardless but since the fields are empty the h3 headers well not render. But you need to wrap the image in a condition so it will not be rendered unless weatherdata.icon is not an empty string.
View all comments
Show parent comment
0
u/[deleted] Feb 23 '20
[deleted] — view deleted comment