user image

Preeti Tripathi

Job Interview Skills
English
2 years ago

48. What distinguishes React's cloneElement and createElement commands?

user image

Abhishek Mishra

2 years ago

CloneElement is largely used in React to copy an element and pass it directly to new props. CreateElement, on the other hand, is the entity into which JSX is translated. React elements are also created using this.

Recent Doubts

Close [x]