Skip to content

Fix documentation for React.createClass() over ES6 classes #78

@xndyz

Description

@xndyz

You may see some talk about ES6 classes being the preferred way to create React components. This is untrue. Most people (including Facebook) are using React.createClass().

No where in the official docs did I see React.createClass being preferred over ES6 classes. Did you mean createReactClass, which auto-binds methods but requires you to load another module? I'm curious what the reasoning was for this comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions