Is there exist way to change inner component based on props of outer component? It possible to do using React.createElement and overriding props for children. B
React.createElement