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

createElement() functions to create React elements which are going to be used for the object representation of UI. Whereas cloneElement is used to clone an element and pass it new props.

Recent Doubts

Close [x]