[Docs] document optional param for renderComponentToString
Merge pull request #1186 from chenglou/doc-toString-opt

[Docs] document optional param for renderComponentToString