There's a problem with the advice here - it assumes a 10+ year time frame where dips in the stock market cna even out. But that's not your situation - you only plan to rent for "the next several years", which could be only 2-4 years before buying a house.
The shorter the time frame, the more bonds you need to keep your money stable. I'd start out splitting the difference (50% bonds / 50% stocks), and as you approach the last 1-2 years before buying, switch to mostly bonds (75% bonds / 25% stocks). The gains are nice... but if the stock market corrects, there goes your house. The downside prevents you buying, so you need to watch that risk.
You can take a higher risk if you're willing to delay your house purchase for as many years as the stock market takes to recover from a crash. Which, by the way, is actually unknowable but has tended to be ~1-2 years.