30 year is a long time but stocks can be 100 baggers in well under this time frame..
For example, Xero listed on the NZX in May 2007 at NZ$1 per share and reached AU$100 in August 2020 - 13 years later. REA could have been bought for 13 cents back in June 2002 and 18 years later was a 100 bagger.
But what if one only realised the potential of these companies ten years ago.
REA in June 2012 would have cost $13.50 and 10 years later reached $169 (CAGR 28.8%). At the current price of $112 approx. the return is still a healthy 23.6%.
XRO having commenced its dual listing on the ASX in November 2012 at $4.65 per share has, ignoring the peak share price around $150 earlier this year, at the current price of around $87 produced a 10 year CAGR of 34%.
The point to all this is that whilst a 100 bagger sounds wonderful if it takes 30 years your return is 16.6% per annum. A 10 bagger in 10 years is a return of 25.9% per annum. I know which I prefer.
Just for a bit of fun I have included a table showing the top 50 Fortune 500 companies by revenue 30 years ago and the current top 50 S&P500 companies by market capitalisation. This is not an apples for apples comparison but it does provide a bit of flavour in showing the changing world we live in. Some of the Fortune 500 companies in 1992 have gone to the wall, others are not quite what they used to be and some are still doing the heavy lifting.

I asked Anirban and @Strawman the other day where they look for long term investments on the ASX and referred to the excellent book '100 baggers' by Christopher Mayer.
Both Anirban and @Strawman noted that even a double bagger is a pretty good return and perhaps don't shoot so high was my inference. This of course depends on your timeline. A double bagger over my intended holding period of the next 30 years would be pretty awful.
So I guess what I'm leading to is how do people identify stocks which are not only at good valuations for the short - medium term but have the potential to continue compounding over 30 years. A lot of examples in the book are US stocks and rightly or wrongly I wondered whether a company needs to be a true multinational to lend itself to those timelines of growth.
For other investors who look to invest and hold very long term, are there sectors which suit? or particular company attributes? Or do the same attributes which make a 5 year investment attractive make a 30 year investment attractive?
Thoughts?