Skip to content

static properties misuse of colon instead of = ? #5

Open
@niksosf

Description

@niksosf

Hi there, I think the colon in
export default class FloatingLabel extends React.Component { static propTypes: {

is throwing error in babel. Is it also the case on your end? I am using web pack 2 with .babelrc like this
{ "presets": [ ["es2015", { "modules": false}], "react", "stage-0" ], "plugins": ["react-hot-loader/babel"] }

shouldn't it be static propTypes = {...}

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