I am looking to render a component based upon a string. Essentially, I am hoping to find the JSX equivalent to JavaScript's dynamic function name ability (parent["childMethod"]
).
So, if I have a string, such as "<MyComponent />"
, how can I turn into JSX and render?