add option for renderComponentToString