Understand the demoapp folder structure
masterThe project follows a standard Create React App structure. For the project to build successfully, the following files must exist with these exact filenames:
public/index.html: The page template.src/index.js: The JavaScript entry point.
Key Rules:
- JS and CSS files: Must be placed inside
srcso Webpack can process them. - Assets for HTML: Only files inside
publiccan be used directly frompublic/index.html. - Subdirectories: You can create subdirectories inside
srcfor organization. Files insidesrcare processed by Webpack for faster rebuilds. - Top-level directories: You can create other top-level directories, but they will not be included in the production build.
my-app/
README.md
node_modules/
package.json
public/
index.html
favicon.ico
src/
App.css
App.js
App.test.js
index.css
index.js
logo.svg