From b1f449c78e18ae0fc948d4fe11d53c0a0e261008 Mon Sep 17 00:00:00 2001 From: Pavol-Szegheo-MSc Date: Sun, 11 May 2025 02:18:45 -0400 Subject: [PATCH] Update folder-structure.md Updated the page to reflect Vite assisted creation --- docusaurus/docs/folder-structure.md | 56 ++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 16 deletions(-) diff --git a/docusaurus/docs/folder-structure.md b/docusaurus/docs/folder-structure.md index f135b635164..2d8b9420391 100644 --- a/docusaurus/docs/folder-structure.md +++ b/docusaurus/docs/folder-structure.md @@ -6,33 +6,57 @@ title: Folder Structure After creation, your project should look like this: ``` -my-app/ - README.md +MY-APP/ node_modules/ - package.json public/ - index.html - favicon.ico + vite.svg src/ + assets/ + react.svg App.css - App.js - App.test.js + App.jsx index.css - index.js - logo.svg + main.jsx + .gitignore + eslint.config.js + index.html + package-lock.json + package.json + README.md + vite.config.js ``` -For the project to build, **these files must exist with exact filenames**: +In a default React project created using npm create vite@latest my-app -- --template react, the minimal set of files required for the project to build and run the basic React application structure are: + +index.html (in the project root): + +Required. This is the main entry point for both the development server and the production build. Vite uses this HTML file to load your application's JavaScript bundle. +It contains the basic HTML structure and, crucially, a