Dec 21, 2022
It is mandatory to use the link component in react-router-dom. If you move to react to nextjs and react-router to tanStack, you always need a link component. somehow you successfully implemented traditional <a>
tag in react, then your website refreshes whenever some click on the link. it is a web performance issue; to avoid it, use the link component.
I hope you understand why you use a link component.
Thanks
Rajdeep Singh
Happy coding