New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

error using Class Properties with React #46

Closed
loconluis opened this Issue Mar 17, 2018 · 1 comment

Comments

2 participants
@loconluis
Copy link

loconluis commented Mar 17, 2018

state = {
    collapse: false
}

The error occurs, when I put the state like show above using class properties, says that the equal sign (=) is an unexpected token. 馃檨

captura de pantalla 2018-03-17 a la s 15 42 45

@feross

This comment has been minimized.

Copy link
Member

feross commented May 15, 2018

You need to install babel-eslint and set it as your parser. See: https://standardjs.com/#how-do-i-use-experimental-javascript-es-next-features

@feross feross closed this May 15, 2018

@feross feross added the question label May 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment