0
0
Reactframework~5 mins

Project structure overview in React - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the src folder in a React project?
The src folder holds all the source code files like components, styles, and utilities that make up the React app.
Click to reveal answer
beginner
Why do React projects often have a public folder?
The public folder contains static files like the main HTML file and images that do not change and are served directly to the browser.
Click to reveal answer
beginner
What is the role of package.json in a React project?
package.json lists the project dependencies, scripts, and metadata. It helps manage libraries and commands for the React app.
Click to reveal answer
beginner
Where do you usually put reusable UI parts in a React project?
Reusable UI parts are usually placed inside a components folder within src to keep code organized and easy to maintain.
Click to reveal answer
intermediate
What is the benefit of organizing files by feature or domain in a React project?
Organizing by feature groups related files together, making the project easier to understand and scale as it grows.
Click to reveal answer
Which folder usually contains the main HTML file in a React project?
Asrc
Bcomponents
Cpublic
Dnode_modules
Where do you put React components in a typical project structure?
Asrc/public
Bpublic/components
Cnode_modules/components
Dsrc/components
What file lists the dependencies and scripts for a React project?
Apackage.json
Bindex.html
CREADME.md
Dwebpack.config.js
Why is the src folder important?
AIt contains the source code of the app
BIt holds static images
CIt stores build files
DIt contains node modules
What is a good reason to organize files by feature in React?
AImproves browser speed
BMakes the project easier to scale and understand
CAvoids using components
DReduces the number of files
Describe the main folders and files you find in a React project and their roles.
Think about where code lives, where static files go, and how dependencies are managed.
You got /5 concepts.
    Explain why organizing React project files by feature or domain can help in development.
    Consider how grouping things by what they do helps teamwork and growth.
    You got /4 concepts.