React course

React Is a tool for building user interfaces JAVASCRIPT library .

React Mainly used to build UI, Many people think that React yes MVC In V( view ).

React come of Facebook Internal projects , Used to erect Instagram My website , And on 2013 year 5 Month open source .

React High performance , The code logic is very simple , More and more people have begun to pay attention to and use it .


React characteristic

  • 1. Declarative design −React Adopt the declaration paradigm , Can easily describe the application .

  • 2. Efficient −React Pass on DOM Simulation of , Minimize contact with DOM The interaction of .

  • 3. flexible −React It can work well with known libraries or frameworks .

  • 4.JSX − JSX yes JavaScript Extension of Syntax .React Development does not necessarily use JSX , But we recommend using it .

  • 5. assembly − Through React Build components , Make code easier to reuse , It can be well applied in the development of large projects .

  • 6. One way response data flow − React Realize the data flow of one-way response , This reduces duplicate code , That's why it's simpler than traditional data binding .


Before reading this tutorial , What you need to know :

At the beginning of learning React Before , You need to have the following basic knowledge :

  • HTML5
  • CSS
  • JavaScript

React First instance

In each chapter , You can edit instances online , Then click the button to view the results .

This tutorial uses React The version of is 16.4.0, You can find it on the official website https://reactjs.org/ Download the latest version .

React example

< div id = " example " > </ div > < script type = " text/babel " > ReactDOM.render( < h1 > Hello, world! </ h1 > , document.getElementById('example') ); </ script >

Give it a try »