mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
Now examples are trasnformed to GraphQL during build and assembled by the index template. This makes them easier to edit and tie in with their associated markdown description.
14 lines
207 B
JavaScript
14 lines
207 B
JavaScript
class HelloMessage extends React.Component {
|
|
render() {
|
|
return (
|
|
<div>
|
|
Hello {this.props.name}
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
ReactDOM.render(
|
|
<HelloMessage name="Taylor" />,
|
|
mountNode
|
|
); |