In this assignment you are tasked with adding a feature in the exis>ng react applica>on

You have a few files

  • App.js
  • index.html

Once you have made the appropriate replacements and you run the statement npm start in your react project folder you will see the following see image.

You will see a listing of posts from the popular sub-reddit on reddit.com. Your task is the following

  • No>ce that there are a few posts whose images are not rendered since there is no data for the thumbnail image
  • You are to use concepts in the condi>onal rendering of JSX to render a placeholder image in place the images in those posts who don't have an actual image loca>on.
  • You may do this by checking if the value of the thumbnail_height or thumbnail_width are null or if the value of the thumbnail is default or self, if they are then the image if not present and you need to use a place holder other wise render the image in the thumbnail out.

Note, you can do this in a variety of ways so please don't think there is only 1 way to do this correctly. see image.

The submission for this assignment is the App.js file that has the feature requested.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.