mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
@@ -29,7 +29,7 @@ var myDivElement = <div className="foo" />;
|
||||
React.render(myDivElement, document.body);
|
||||
```
|
||||
|
||||
To render a React Component, just a local variable that starts with an upper-case letter:
|
||||
To render a React Component, just create a local variable that starts with an upper-case letter:
|
||||
|
||||
```javascript
|
||||
var MyComponent = React.createClass({/*...*/});
|
||||
|
||||
Reference in New Issue
Block a user