React.createClass

React.createClass

ReactClass createClass(object specification)

Create a component class, given a specification. A component implements a render method which returns one single child. That child may have an arbitrarily deep child structure. One thing that makes components different than standard prototypal classes is that you don't need to call new on them. They are convenience wrappers that construct backing instances (via new) for you.

For more information about the specification object, see Component Specs and Lifecycle.

doc_React
2016-06-23 03:32:17
Comments
Leave a Comment

Please login to continue.