Check out example codes for "wpf get name of clicked element". It will help you in understanding the concepts better.

Code Example 1

FrameworkElement s = sender as FrameworkElement;
string name = s.Name;

Learn ReactJs, React Native from akashmittal.com