can’t render my state into the onclick events

I’m trying to create 3×3 grids with image and trying to add functioning to it.
These are my functionning:
1: there is one target photo and if the target photo is clicked, return the counter.
2: if the image wasn’t target photo, the image get’s delete or replaced white image and counter++

`



import React, { Component } from "react";
import "./ImageDisplay.css";
import Popup from "./PopUp";



class ImageDisplay extends Component {
  constructor(props) {
    super(props);
    this.state = {
      

      count: 0,
        
      Target : "images/F10.jpg",

      popImageUrl: ""
    };
  }


  changingColor= (image) => {
    this.setState({
      image: "images/plain-white-background.jpg",

      count: this.state.count + 1

    })

  };

  
  
  render(){
    const imagesArray = [
      { src: './images/C1.jpg', id: 1},
      { src: './images/C2.jpg', id: 2},
      { src: './images/C3.jpg', id: 3},
      { src: './images/C4.jpg', id: 4},
      {  src: './images/C5.jpg', id: 5},
      {  src: './images/C6.jpg', id: 6},
      {  src: './images/C7.jpg', id: 7},
      {  src: './images/C8.jpg', id: 8}, 
      {  src: './images/F10.jpg', id: 9},

    ];


    return (
      <div>
        {imagesArray.map((imgSrc, index) => ( 
        
        <img className="singleImage"

          src = {imgSrc.src}
          key={index.id}
          alt="photos" //when the imamge is not shown
          
         onClick={ () => imgSrc.src !== "images/F10.jpg" ? this.changingColor(image) : null
        
        }
          />
          ))}
          
  

        {this.state.showModal ? (
          <Popup
            popImageUrl={this.state.popImageUrl} 
            closePopup={this.handlePopup}
          />
        ) : null}
        

      </div>
    );
    
  }
}

export default ImageDisplay;


`

However, I’m struggling to create those events and the part of turning the white image. I’ve trying to put conditional on onclick but it doesn’t show any events in the react application.

So if anyone can hlep with thisi code…