关于getInitialState的写法
如果写成:
getInitialState() {
return {
imgsArrangeArr:[]
}
}
就会弹出这个警告:getInitialState was defined on AppComponent, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?
如果写成getInitialState: function() {}的形式 就会提示在这个地方有语法错误。。。