Overview
React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable and easier to debug.
Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM.
Files Structure
Path | Description |
---|---|
/build |
The built output. Run command yarn build to build
it.
|
/_site |
The build output copied to serve on local machine. Created by
yarn serve command.
|
/node_modules |
The package.json file in the app root defines what
libraries will be installed into node_modules/ when
you run yarn install .
|
/public |
Сontains the HTML file so you can tweak it, Change
<title> , insert additional
<link> and <script> tags.
For more details check
official documentation.
|
/src | Your app lives in the src folder. All React components, styles, images, and anything else your app needs go here. |
/src/_metronic | Contains the Metronic core elements: layout, themes, redux ducks, context providers. |
/src/app | Main app folder |
/src/app/crud | CRUD methods |
/src/app/i18n |
Used by I18nProvider to override
react-intl messages.
|
/src/app/pages | Containes web pages. |
/src/app/partials | Contains reusable UI components. |
/src/app/store |
Contains redux store configurations and it's
ducks .
|
/src/app/widgets | Containes reusable widget components. |
.gitignore | Git uses it to determine which files and directories to ignore, before you make a commit. |
serve.json |
Used by serve-handler runned by command
yarn serve .
|
package.json | A package.json file contains meta data about app or module. Most importantly, it includes the list of dependencies to install from npm when running npm install. |
For more detailed information to install the Create React App, visit this official Create React App documentation website.