Rajdeep Singh
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

--

--

Rajdeep Singh
Rajdeep Singh

Written by Rajdeep Singh

Follow me if you learn more about JavaScript | TypeScript | React.js | Next.js | Linux | NixOS | Frontend Developer | https://linktr.ee/officialrajdeepsingh

No responses yet