|
2 | 2 |
|
3 | 3 | React is a JavaScript library for building user interfaces. |
4 | 4 |
|
5 | | -* **Declarative:** React uses a declarative paradigm that makes it easier to reason about your application. |
6 | | -* **Efficient:** React computes the minimal set of changes necessary to keep your DOM up-to-date. |
7 | | -* **Flexible:** React works with the libraries and frameworks that you already know. |
| 5 | +* **Just the UI:** Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project. |
| 6 | +* **Virtual DOM:** React uses a *virtual DOM* diff implementation for ultra-high performance. It can also render on the server using Node.js — no heavy browser DOM required. |
| 7 | +* **Data flow:** React implements one-way reactive data flow which reduces boilerplate and is easier to reason about than traditional data binding. |
8 | 8 |
|
9 | 9 | [Learn how to use React in your own project.](http://facebook.github.io/react/docs/getting-started.html) |
10 | 10 |
|
11 | 11 | ## Examples |
12 | 12 |
|
13 | | -We have several examples [on the website](http://facebook.github.io/react). Here is the first one to get you started: |
| 13 | +We have several examples [on the website](http://facebook.github.io/react/). Here is the first one to get you started: |
14 | 14 |
|
15 | 15 | ```js |
16 | 16 | /** @jsx React.DOM */ |
17 | 17 | var HelloMessage = React.createClass({ |
18 | 18 | render: function() { |
19 | | - return <div>{'Hello ' + this.props.name}</div>; |
| 19 | + return <div>Hello {this.props.name}</div>; |
20 | 20 | } |
21 | 21 | }); |
22 | 22 |
|
@@ -51,7 +51,7 @@ bower install --save react |
51 | 51 |
|
52 | 52 | ## Contribute |
53 | 53 |
|
54 | | -The main purpose of this repository is to continue to evolve React core, making it faster and easier to use. If you're interested in helping with that, then keep reading. If you're not interested in helping right now that's ok too :) Any feedback you have about using React would be greatly appreciated. |
| 54 | +The main purpose of this repository is to continue to evolve React core, making it faster and easier to use. If you're interested in helping with that, then keep reading. If you're not interested in helping right now that's ok too. :) Any feedback you have about using React would be greatly appreciated. |
55 | 55 |
|
56 | 56 | ### Building Your Copy of React |
57 | 57 |
|
@@ -81,12 +81,10 @@ At this point, you should now have a `build/` directory populated with everythin |
81 | 81 | We use grunt to automate many tasks. Run `grunt -h` to see a mostly complete listing. The important ones to know: |
82 | 82 |
|
83 | 83 | ```sh |
84 | | -# Create test build & run tests with PhantomJS |
| 84 | +# Build and run tests with PhantomJS |
85 | 85 | grunt test |
86 | | -# Lint the core library code with JSHint |
| 86 | +# Lint the code with JSHint |
87 | 87 | grunt lint |
88 | | -# Lint package code |
89 | | -grunt lint:package |
90 | 88 | # Wipe out build directory |
91 | 89 | grunt clean |
92 | 90 | ``` |
|
0 commit comments