Put in order · JavaScript and React course · Module 1: React Basics

Process: Application structure

Arrange the file hierarchy of a React application:

Items to put in order

  • src/App.jsx (main application component)
  • index.html (main HTML template in the root directory)
  • src/main.jsx (application entry point)
  • src/components/ (functional components)
  • src/assets/ (styles, images, static files)
Show the answer

Correct order:

  1. index.html (main HTML template in the root directory)
  2. src/main.jsx (application entry point)
  3. src/App.jsx (main application component)
  4. src/components/ (functional components)
  5. src/assets/ (styles, images, static files)