项目作者: aranab

项目描述 :
A project of react developing template
高级语言: JavaScript
项目地址: git://github.com/aranab/codearx-react.git
创建时间: 2018-09-19T10:22:53Z
项目社区:https://github.com/aranab/codearx-react

开源协议:MIT License

下载


Resource Overview

A project of react developing template

  1. Javascript(ES6 or ECMAScript 6 or ECMAScript 2015, ES2016, ES2017 syntax)
  2. Nodejs and npm
  3. Reactjs
  4. babel 7.x
  5. Webpack and webpack module loaders
  6. Sass
  • To generate distribution(dist) folder: Run > npm run build
  • To start project in webserver: Run > npm start

What is React?

  • A library for user interfaces
  • Create at Facebook and Instagram
  • React Native for mobile
  • React Website
  • github repo
  • Virtual DOM

Efficient rendering with React:

  • DOM Diffing
    • Compares rendered content with the new UI changes
    • Makes only the minimal changes necessary
    • Compares JavaScript objects
    • Is faster than writing to or reading from DOM

Pure React:

Refactoring elements using JSX:

Install react:

Babel inline transpiling:

Babel static transpiling with babel-cli 7.x:

Building with webpack:

React App:

Create components:

Props:

State:

React Router:

Form Component:

  • State management by Redux
  • Data management solution by Relay
  • Data management solution by Falcor
  • Data management solution by GraphQL

License

Single license MIT