Simple explanation directory Create-react-app created by the scaffold

Facebook launched
in 2013 revenue
after React version 16 Fiber called React
React Fiber can also refer to achieve In an underlying increase of 16
React.js more appropriate in the high complexity of the API Vue therefore less flexibility compared to the higher
official scaffolding --Create-react-app

Project File structure:
1.README.md file
is a project documentation has a certain format requirements, you can write your own

2.package.json file
which is the introduction of a number of projects, such as package dependencies, project name of
a node package file

3.gitignore
git of a file, if you do not want to git up some documents, here to write

4.node - modules
that is dependent on a number of package react general files

5.public
put some files, such as icon files
(1) manifest.json file
PWA technology here is what we mentioned below, this is equivalent to create a shortcut on the desktop

In the index of which there will be a You need to enable JavaScript to run this app.
If the user script disabled will have such a prompt can be deleted

6.src directory
to put all the items in the source code
(1) index.js
This is used to place when we first started the project can see the main page
there is a line import registerServiceWorker from './registerServiceWorker';
this is PWA front-end technology, if you put the code of a server's first visit https later, the page code will be left on the browser
src directory there is such a service file, if required they can be deleted directly
( 2) App.test.js an automated test file that can help you test

Published 14 original articles · won praise 9 · views 2170

Guess you like

Origin blog.csdn.net/weixin_44956861/article/details/94974292