mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-26 07:25:20 +00:00
10 lines
475 B
Markdown
10 lines
475 B
Markdown
---
|
|
title: A Simple Component
|
|
order: 0
|
|
domid: hello-example
|
|
---
|
|
|
|
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`.
|
|
|
|
**JSX is optional and not required to use React.** Try the [Babel REPL](babel://es5-syntax-example) to see the raw JavaScript code produced by the JSX compilation step.
|