React Hook "usePathname" is called in function "page"
Answered
Waterman posted this in #help-forum
WatermanOP
Hello, I have linked a picture to my issue, I havn't had this issue before, I suspect it could be because I switched pc but why would that technically matter?
Check picture for error:
Check picture for error:
Answered by Giant panda
You component is probably called
page instead of something with a uppercase letter in the beginning which is uncommon in React. The linter is probably complaining due to that as it cannot match correctly.3 Replies
Giant panda
You component is probably called
page instead of something with a uppercase letter in the beginning which is uncommon in React. The linter is probably complaining due to that as it cannot match correctly.Answer
Giant panda
So rename your page component to
Page instead of something with the first letter being uppercase.WatermanOP
thanks 🙂