REACTJS website address:http://facebook.github.io/react/
GitHub Address:https://github.com/facebook/react
Eg: Write Reactjs:
It is important to note that react does not rely on jquery, and of course we can use jquery,
But the second parameter in render must use the native JavaScript getElementById method,
You cannot use jquery to select DOM nodes.
1: three-dimensional expression
2: Assigning values to function variables
3: Calling functions Directly
4. Comparison operators
The HTML language is written directly in the JavaScript language without any quotation marks, which is the syntax of JSX, which allows for the mix of HTML and JavaScript, let's look at the code:
Here we declare a names array, and then iterate through the front with the hello, output to the DOM, the output is as follows:
JSX allows JavaScript variables to be inserted directly into the template. If the variable is an array, all the members of the array will be expanded, with the following code:
The results appear as follows:
Primary knowledge Reactjs (I.)