I am building a frontend website and I am trying to make sure that the website can be crawled by search engines so that it can appear in search results.
Currently, most of my links look like this in react:
<Link to="/about" className="btn">More About Us</Link>
But Google says this:
Google can follow links only if they are an tag with an href attribute. Links that use other formats won't be followed by Google's crawlers. Google cannot follow links without an href tag or other tags that perform a links because of script events.
Does this mean that my website will not crawled? Would the sitemap.xml
be the solution to this?