Mobile app version of vmapp.org
Login or Join
Lee4591628

: How do I get Google to crawl and index a react.js app that uses AJAX and onclick events instead of links? What would be the best way to get Google to index a react app. Google can now

@Lee4591628

Posted in: #Googlebot #GoogleSearchConsole #ReactJs #SinglePageApplication

What would be the best way to get Google to index a react app. Google can now read JavaScript, so no pre-rendering or isomorphic application is needed.

But what about internal links on a page? We use onClick all over the place.

Are there any meta tags to tell googlebot about the links on the page?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Lee4591628

1 Comments

Sorted by latest first Latest Oldest Best

 

@Berumen354

Google parses a page much the same way a web browser does including processing JavaScript and then evaluating the DOM to identify what the end user would see the page as. In this way Google is able to identify on click events that redirect a page and follow those links. There is no special tags you have to add anymore to tell Google how to navigate your site. The rule of thumb now is that if an end user can see it without logging in (unless you provide Google with a login account to index protected pages) then Google can see it, crawl it, and if appropriate index it

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme