Check out example codes for "meta tag noindex". It will help you in understanding the concepts better.

Code Example 1

<meta name="robots" content="noindex">

Learn ReactJs, React Native from akashmittal.com