React.createComponent and extends React.Component give us the same results. The ability to create React components.
I’m starting a new project, and wanted to set a standard in the way I create components. I was interested to see who uses React.createComponent or extends React.Component.
Looks like the majority of people that answered are using extends React.Component.
I done some deeper diving into why and found some links that might help you decide:
Choose extends React.Component
Sign up for the latest articles!
Get the latest posts straight to your inbox!Sign up