Whenever , I try to run the code, I get below error. I am not using useNavigate anywhere.
Error
Folder structure
2
I have solved this error. Steps
In the title, you said that there is no file named listItems.js but the file is there but is named listItems.tsx.
listItems.js
listItems.tsx
The problem with this file is they are not following the correct name convention for React, try changing it to ListItems.tsx
ListItems.tsx
Click here to cancel reply.
2
Answers
I have solved this error. Steps
In the title, you said that there is no file named
listItems.js
but the file is there but is namedlistItems.tsx
.The problem with this file is they are not following the correct name convention for React, try changing it to
ListItems.tsx
listItems.js