import { animals } from ‘./animals’;
import React from ‘react’;
import ReactDOM from ‘react-dom’;
const title= ‘’
const background=ocean
const images=;
for(const animal in animals){
images.push(<img key={animal} className=‘animal’ alt= {animal} src:{animals[animal].image} aria-label:{animal} role:‘button’ />)}
const animalFacts= (

{title===’’ ?‘Click an animal for a fun fact’: title}

) ReactDOM.render(animalFacts,document.getElementById('root'))

Hi, can you be more specific with what your problem is?

1 Like

Hi shane I could not get the images in the Images array to render but turns out I had a colon where I should have been having an assignment operator… thanks alot

Oh haha no problem! Press the “solution” button on your post!

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.