Google now follows what they call "Dynamic Rendering" where they allow you to serve prerendered pages directly to Googlebot based on a user agent check.
More information on Google's Dynamic Rendering here: https://prerender.io/documentation/google-support