mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
put closing paren in correct place
(cherry picked from commit 07427ae9d0)
This commit is contained in:
committed by
Paul O’Shannessy
parent
fae1c48470
commit
3d78d30f49
@@ -107,7 +107,7 @@ We pass some methods in a JavaScript object to `React.createClass()` to create a
|
||||
|
||||
The `<div>` tags are not actual DOM nodes; they are instantiations of React `div` components. You can think of these as markers or pieces of data that React knows how to handle. React is **safe**. We are not generating HTML strings so XSS protection is the default.
|
||||
|
||||
You do not have to return basic HTML. You can return a tree of components that you (or someone else built). This is what makes React **composable**: a key tenet of maintainable frontends.
|
||||
You do not have to return basic HTML. You can return a tree of components that you (or someone else) built. This is what makes React **composable**: a key tenet of maintainable frontends.
|
||||
|
||||
`React.renderComponent()` instantiates the root component, starts the framework, and injects the markup into a raw DOM element, provided as the second argument.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user