Skip to content

Error when creating ES6 functions #86

@codestitch

Description

@codestitch

Hi. I am writing functions inside the component class in my react js project. when I write like this function:

saySomething = (something) => { console.log(something); }

an error occurs.

screen shot 2017-07-05 at 5 53 02 pm

What should I do?

Thank you.

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