Use NavMenu Component time , Display the menu list by reading the menu information in a loop . After the relevant processing , The menu can be displayed normally , It's been alerting the console, but , newspaper ：Invalid prop: custom validator check failed for prop "index" It's abnormal , As shown below ：
After this problem , Check... In the code index Handle , as follows ：
Write it like this , It seems to be right , But keep warning .
index It's a string , Not numbers , Here it is changed to the following , It will be normal .