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:

  1. Writing JSX syntax in a component
  2. Babel transpiles JSX into React.createElement calls
  3. React.createElement creates JavaScript objects (React elements)
  4. React builds a Virtual DOM tree from these objects
  5. ReactDOM renders the Virtual DOM to the real DOM