Skip to content

custom elements, as implied in lower-case-convention.md, not working #2430

@pekim

Description

@pekim

As I understand lower-case-convention.md, custom element names are now supported.

However when I try to do this (using 0.12.0), following the example in the gist, the jsx fails to be transformed.

var component = React.createClass();
return <component />;
Error: Lower case component names (component) are no longer supported in JSX: See http://fb.me/react-jsx-lower-case
    at Array.visitReactTag [as 0] (/home/mike/hipcac2/node_modules/react-tools/vendor/fbtransform/transforms/react.js:66:13)

What am I misunderstanding, or doing wrong. Or is that gist misleading?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions