score:1

 class Country extends React.Component {
 render() {
 const adminCodes = ["India", "USA", "UK", "UAE"];

 return (
  <div>
    <ul>
      {adminCodes.map((item) => (
        <li
          key={item}
          style={{ cursor: "pointer" }}
          onClick={() => handleListCountryClick(item)}
        >
          {item}
        </li>
      ))}
    </ul>
  </div>
  );
 }
}

 const handleListCountryClick = (item) => {
       console.log(`I'm a ${item}!`);
};

export default Country;

score:1

onClick={() => {console.log('I worked!!')}}

Related Query

More Query from same tag