Folder Structure
sparic/
├── public/
├── src/
| ├── assets /
| | ├── css
| | ├── iconfonts
| | ├── images
| | ├── plugins
| | ├── scss
| | └── switcher
| ├── common/
| | ├── commonimages/
| | ├── redux/
| | └── routingdata
| ├── components/
| ├── layouts/
| ├── index.scss
| └── main.jsx
├── eslintrc.json
├── .gitignore
├── gulpfile.js
├── index.html
├── package.json
└── vite.config.js
| # |
File |
Purpose |
|
index.html |
The main page that is served when someone visits your site. Most of
the time you'll never need to edit it.
The CLI automatically adds all jsx and css files when building your app
so you never need to add any
<script> or <link> tags here
manually.
|
|
App..{react, scss, js} |
Defines the App Component along with an React template, CSS/SCSS
stylesheet, and a unit test. It is the root component of what will
become a tree of nested components as the application evolves. |
|
main.jsx |
Routing basically means navigating between pages. You have seen many
sites with links that direct you to a new page. This can be achieved
using routing. |
|
index.scss |
Global Sss/Scss code. |
|
App.jsx |
Defines AppModule, the root module that tells React how to assemble the
application. Right now it declares only the App Component. Soon there
will be more components to declare. |
|
assets |
A folder where you can put images, css, json data anything else to be
copied wholesale when you build your application. |
|
styles.scss |
Your global styles go here. Most of the time you'll want to have local
styles in your components for easier maintenance, but styles that affect
all of your app need to be in a central place. |
|
.gitignore |
Git configuration to make sure autogenerated files are not commited to
source control. |
|
package.json |
npm configuration listing the third party packages your project uses.
You can also add your own custom scripts
here. |