before 1.0.0-beta.0, react-element-to-jsx-string was used which allowed for a string. Now with the custom function, strings are not accepted.