renderComponentToString is sync now

It was never actually async, which is why this code worked at all in the
first place. The change in react just made that explicit.