Skip to content

Stance on React 0.14 stateless function components #612

Closed
@jaroslawr

Description

@jaroslawr

The React part of the coding standard, with its insistence of using classes for components, when read literally seems to be prohibiting the now officially recommended stateless function components:

var Aquarium = ({species}) => (
  <Tank>
    {getFish(species)}
  </Tank>
);

https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html

I guess this was just written before React 0.14. Any chances of taking some more explicit stance on those in the coding standard?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions