Javascript How To Detect If Certain React Component Is Clicked

Javascript How To Detect If Certain React Component Is Clicked