@@ -3,19 +3,21 @@ layout: page
3
3
title : A JavaScript library for building user interfaces
4
4
id : home
5
5
---
6
+
6
7
<section class =" light home-section " >
7
8
<div class =" marketing-row " >
8
9
<div class="marketing-col">
9
- <h3>The "V" in MVC </h3>
10
+ <h3>Declarative </h3>
10
11
<p>
11
- Write reusable UI components in JavaScript. Read and write to any data source.
12
+ React uses a declarative paradigm that makes it easier to reason about
13
+ your application.
12
14
</p>
13
15
</div>
14
16
<div class="marketing-col">
15
- <h3>Fast & Declarative </h3>
17
+ <h3>Efficient </h3>
16
18
<p>
17
- Describe how you want your component to look. React will automatically compute
18
- the fastest way to keep the UI up-to-date when the data changes .
19
+ React computes the minimal set of changes necessary to keep your DOM
20
+ up-to-date.
19
21
</p>
20
22
</div>
21
23
<div class="marketing-col">
@@ -33,21 +35,21 @@ id: home
33
35
<h3>A Simple Component</h3>
34
36
<p>
35
37
React components implement a `render()` method that takes input data and
36
- returns what to display. This example constructs the component using an
37
- XML-like syntax called JSX, but <strong>JSX is optional; you don't
38
- need to use it</strong>. Input data is passed to the component as XML
39
- attributes, and `render()` accesses this data via `this.props`.
38
+ returns what to display. This example uses an XML-like syntax called
39
+ JSX. Input data that is passed into the component can be accessed by
40
+ `render()` via `this.props`.<br />
41
+ <strong>JSX is optional and not required to use React.</strong>
40
42
</p>
41
43
<div id="helloExample"></div>
42
44
</div>
43
45
<div class="example">
44
46
<h3>A Stateful Component</h3>
45
47
<p>
46
- In addition to taking data from its creator (accessed via `this.props`),
47
- a component can maintain internal state data (accessed via
48
- `this.state`). When a component's state data changes, the rendered
49
- markup will be updated by re-invoking `render()`. <strong>This example
50
- doesn't use JSX</ strong>, but you could if you wanted to.
48
+ In addition to taking input data (accessed via `this.props`), a
49
+ component can maintain internal state data (accessed via `this.state`).
50
+ When a component's state data changes, the rendered markup will be
51
+ updated by re-invoking `render()`.<br />
52
+ < strong>This example demonstrates use of React without JSX.</strong>
51
53
</p>
52
54
<div id="timerExample"></div>
53
55
</div>
0 commit comments