File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,12 @@ id: home
39
39
React components implement a `render()` method that takes input data and
40
40
returns what to display. This example uses an XML-like syntax called
41
41
JSX. Input data that is passed into the component can be accessed by
42
- `render()` via `this.props`.<br />
43
- <strong>JSX is optional and not required to use React.</strong>
42
+ `render()` via `this.props`.
43
+ </p>
44
+ <p>
45
+ <strong>JSX is optional and not required to use React.</strong> Try
46
+ clicking on "Compiled JS" to see the raw JavaScript code produced by
47
+ the JSX compiler.
44
48
</p>
45
49
<div id="helloExample"></div>
46
50
</div>
@@ -50,8 +54,7 @@ id: home
50
54
In addition to taking input data (accessed via `this.props`), a
51
55
component can maintain internal state data (accessed via `this.state`).
52
56
When a component's state data changes, the rendered markup will be
53
- updated by re-invoking `render()`.<br />
54
- <strong>This example demonstrates use of React without JSX.</strong>
57
+ updated by re-invoking `render()`.
55
58
</p>
56
59
<div id="timerExample"></div>
57
60
</div>
You can’t perform that action at this time.
0 commit comments