There are two exception to this special behavior: If the link doesn’t have a precedence prop, there is no special behavior, because the order of stylesheets within the document is significant, so react needs … Because of this, if you are using nav :last-child you will need to use nav :last-of-type so the styles don't conditionally fall off your last link (and any other similar selectors).

Learn how to use the href tag in reactjs and explore its compatibility and implementation details on this stack overflow discussion.