Check out example codes for "how to make comments in markdown which do not render in html". It will help you in understanding the concepts better.

Code Example 1

[//] <> (This works, parathesis are necessary btw)
[//] # (This is perhaps the most platform independent solution.
In either case, the comments will not render to html,
even if the user selects view source.)

Learn ReactJs, React Native from akashmittal.com