Put in order · JavaScript and React course · Module 1: React Basics
Process: JSX compilation
Arrange the process of JSX compilation to the DOM:
Items to put in order
- React.createElement creates JavaScript objects (React elements)
- ReactDOM renders the Virtual DOM to the real DOM
- Writing JSX syntax in a component
- React builds a Virtual DOM tree from these objects
- Babel transpiles JSX into React.createElement calls
Show the answer
Correct order:
- Writing JSX syntax in a component
- Babel transpiles JSX into React.createElement calls
- React.createElement creates JavaScript objects (React elements)
- React builds a Virtual DOM tree from these objects
- ReactDOM renders the Virtual DOM to the real DOM