Check out example codes for "rename table of contents latex". It will help you in understanding the concepts better.

Code Example 1

\renewcommand{\contentsname}{Whatever}

Learn ReactJs, React Native from akashmittal.com