Check out example codes for "how to remove all buttons on a form C#". It will help you in understanding the concepts better.

Code Example 1

panel.Controls.OfType<Button>().ToList().ForEach(btn => btn.Dispose());

Learn ReactJs, React Native from akashmittal.com