Very interesting. A minor correction - Google does execute JavaScript while indexing your pages. But we can’t say the same for other crawlers. So, it’s always best to pre render your pages. Thanks for writing this. 🙌
The following article explains how exactly Google indexes pages with JS. I found it very interesting.