CreateElement
createElement is a common name in JavaScript web development, referring to two related APIs that create elements in different contexts: the DOM API used to construct actual HTML elements within a document, and React’s API used to define elements in the virtual DOM.
In the Web Platform, the primary function is document.createElement(tagName). This method creates a new Element node
In React, React.createElement is a function that creates a virtual element description used by the React library
See also: document.createElement, document.createElementNS, createDocumentFragment, createElementNS, React.createElement.