Check out example codes for "insert contents page word". It will help you in understanding the concepts better.

Code Example 1

It's in References > Table of Contents in the ribbon

Learn ReactJs, React Native from akashmittal.com