import React from 'react';

class Home extends React.Component {
  handleClick = (e) => {
    if (e.target.tagName === 'IMG') {
      console.log('Image clicked!', e.target.src);
    }
  }

  render() {
    return (
      <div onClick={this.handleClick}>
        <img src="image1.jpg" alt="Image 1" />
        <img src="image2.jpg" alt="Image 2" />
        <img src="image3.jpg" alt="Image 3" />
      </div>
    );
  }
}

export default Home;
