1. react basis Introduction and environmental structures

I. Introduction

  The largest number of people using the front-end framework launched in 2013 by the Facebook open source functional programming has a sound document with the full range of community ( official website )

  react 16 called React Fiber (bottom layer can be performed with a higher priority event to enhance the user experience by debris time of the event loop)

Two, react.js and vue.js

  reactjs high degree of flexibility greater complexity

  vuejs provides more flexibility api limit less complex

Third, build environment

  1. The introduction .js file to use React

  2. Use the tool to encode scaffolding (scaffolding: automatic build process and help the realization of large-scale projects directory application compiled code js file) (Official Scaffolding: create-react-app)

Fourth, the installation of scaffolding

  Access  https://reactjs.org/docs/getting-started.html

  Add React in on the right INSTALLATION to a New App

    Review the section titled Create React App

      But the need to use npm install (need to install the node and npm)

      Access node official website download page   choose Download (LTS latest stable version Current version)

      Queries npm version in the command-line tool

      asl -v

  Installation of scaffolding and create my-app (not allowed to create todoList relevant directory)

    npx create-react-app my-app 

    cd my-app

    npm start

  Access localhost: 3000 emergence of this page says the installation was successful and created the app a react

 

Guess you like

Origin www.cnblogs.com/zonehoo/p/11592402.html