MemotivaReact Fundamentals and JSX

What does React.createElement do?

React Fundamentals and JSX

Audio flashcard · 0:10

Nortren·

What does React.createElement do?

0:10

React.createElement is the function JSX compiles to. It creates a React element object with a type, props, and children. Before JSX, this was the primary way to describe UI in React.