Did react-router-dom finally render Link as a tag?

clipboard.png

clipboard.png
react-router-dom finally renders the Link as a tag ("_ `). This is the Link? that .open-search a {} serves.

Mar.09,2021

Yes, the Link component will eventually render as the HTML tag a, but the comparison of the HTML Link component avoids unnecessary re-rendering, thereby reducing DOM performance consumption.


you can use this chrome devtool to debug your react code
React Developer Tools
so that you can see the previous jsx and the subsequent dom

Menu