Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 761e1c8

Browse files
sophiebitsvjeux
authored andcommitted
Update homepage for new JSX/JS editor
1 parent 6b1c6be commit 761e1c8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/index.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@ id: home
3939
React components implement a `render()` method that takes input data and
4040
returns what to display. This example uses an XML-like syntax called
4141
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.
4448
</p>
4549
<div id="helloExample"></div>
4650
</div>
@@ -50,8 +54,7 @@ id: home
5054
In addition to taking input data (accessed via `this.props`), a
5155
component can maintain internal state data (accessed via `this.state`).
5256
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()`.
5558
</p>
5659
<div id="timerExample"></div>
5760
</div>

0 commit comments

Comments
 (0)