Answer the question
In order to leave comments, you need to log in
What is the correct way to specify getInitialState in ES6?
I’m just starting to understand react, I decided to use ES6 right away and ran into such a problem, everywhere it says that in ES6 you need to specify the initial state in this way - state = { ... } , but for some reason it gives me a syntax error, please tell me what could it be the case?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question