A project of react developing template
A project of react developing template
> npm run build
> npm start
React.createElement(type, [props], [...children])
ReactDOM.render(element, container[, callback])
{}
> npm install --save-dev @babel/core @babel/cli
.babelrc
configuration file> npm install --save-dev @babel/preset-env
> npm install --save-dev @babel/preset-react
npm run babel [source file path] --out-file [destination file path]
:> ./node_modules/.bin/babel ./src/index.js --out-file ./dist/bundle.js
> npm install --save-dev webpack webpack-cli
> npm install --save-dev webpack-dev-server
> npm install --save-dev babel-loader
> npm install --save-dev html-loader
> npm install --save-dev style-loader
> npm install --save-dev css-loader
> npm install --save-dev postcss-loader
> npm install --save-dev sass-loader node-sass
> npm install --save-dev html-webpack-plugin
> npm install --save-dev html-webpack-harddisk-plugin
> npm install --save-dev clean-webpack-plugin
> npm install --save-dev mini-css-extract-plugin
> npm install --save-dev terser-webpack-plugin
> npm install --save-dev optimize-css-assets-webpack-plugin
> npm run build
> npm start
React.Component
rather than using React.createClass
since its deprecated from version 16.0
onwards and has been moved to a separate package ‘create-react-class’.> npm install --save react-icons
> npm install --save isomorphic-fetch es6-promise
> npm install --save prop-types
> npm install --save react-router
> npm install --save react-router-dom
> npm install --save react-router-native
Single license MIT