React.createClass

React.createClass

1
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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.