Update homepage for new JSX/JS editor

This commit is contained in:
Ben Alpert 2014-01-17 16:46:50 -08:00
parent 17de85689e
commit 2ac36178c6
1 changed files with 7 additions and 4 deletions

View File

@ -39,8 +39,12 @@ id: home
React components implement a `render()` method that takes input data and
returns what to display. This example uses an XML-like syntax called
JSX. Input data that is passed into the component can be accessed by
`render()` via `this.props`.<br />
<strong>JSX is optional and not required to use React.</strong>
`render()` via `this.props`.
</p>
<p>
<strong>JSX is optional and not required to use React.</strong> Try
clicking on "Compiled JS" to see the raw JavaScript code produced by
the JSX compiler.
</p>
<div id="helloExample"></div>
</div>
@ -50,8 +54,7 @@ id: home
In addition to taking input data (accessed via `this.props`), a
component can maintain internal state data (accessed via `this.state`).
When a component's state data changes, the rendered markup will be
updated by re-invoking `render()`.<br />
<strong>This example demonstrates use of React without JSX.</strong>
updated by re-invoking `render()`.
</p>
<div id="timerExample"></div>
</div>