I cant get the images to the animals to appear for some reason. I’ve copied the guide video to the tee and it still wont show them.
import { animals } from “./animals”;
import React from “react”;
import { createRoot } from “react-dom/client”;
const container = document.getElementById(“app”);
const root = createRoot(container);
const title = ‘’;
const background =
;
const images = ;
for(const animal in animals){
const image = (
<img
key:{animal}
className:‘animal’
alt:{animal}
src:{animals[animal].image}
aria-label:{animal}
role:‘button’
/>
);
images.push(image);
}
const animalFacts = (
{title === '' ? "Click an animal for a fun fact" : title}
{background}root.render(animalFacts);