how to implement the map in react js for defining an event on some elements? [closed]

like now I wanna have some buttons and by clicking on all of them I want them to do a Same thing how is it possible?

I want those buttons to do something similarly without defining the onClick for them all so how can I do it?

can you be providing some instances for me??