1 min readFeb 11, 2019
Hi Gush, sorry for the slow reply but it’s because createElement is slower than cloneElement, see the following tests https://jsperf.com/react-createelement-vs-react-cloneelement
Hi Gush, sorry for the slow reply but it’s because createElement is slower than cloneElement, see the following tests https://jsperf.com/react-createelement-vs-react-cloneelement
Ask me anything or request a 10 minute video call on https://mbele.io/mark