Alright so, im getting the blank screen of death. I noticed that everything worked up until I tried to complete step 7 and 8. when I hit save i get a blank screen. what am I doing wrong? I watched the video too and compared code with the developer but I still cant figure this out,…any ideas?
mport { animals } from './animals';
import React from 'react';
import ReactDOM from 'react-dom';
const title = "";
const background = (
<img
className="background"
alt="ocean"
src="/images/ocean.jpg"
/>
);
const images = [];
for (const animal in animals) {
images.push(
<img
key: {animal}
className: 'animal'
alt: {animal}
src: {animals[animal].image}
ariaLabel: {animal}
role: 'button'
/>
)
};
const animalFacts = (
<div>
<h1>
{title == "" ? "Click an animal for a fun fact" : ""}
</h1>
{background}
<div className="animals">
{images}
</div>
</div>
);
ReactDOM.render(animalFacts, document.getElementById('root'));