creating elements from api js react code example
Example 1: react.createelement
React.createElement(
type,
[props],
[...children]
)
Example 2: React.createElement
const e = React.createElement;
ReactDOM.render(
e('div', null, 'Hello World'),
document.getElementById('root')
);