problem description
Editor written with react, now I need to copy the dom of a component (such as photo album, carousel.), including its sub-components. My current practice is to get the react element, of this component and then use React.cloneElement () to generate new elements. At this stage, I don"t know how to go on, novices don"t know how to render react elements to the specified dom?