Constant ES6怎么写
class AppComponent extends React.Component {
render() {
var controllerUnits = [];
var imgFigures = [];
imageDatas.forEach(function (value) {
imgFigures.push(<ImgFigure key={value.id} data={value}/>)
});
return (
<section className="stage">
<section className="img-sec">
{imgFigures}
</section>
<nav className="controller-nav">
{controllerUnits}
</nav>
</section>
);
}
这个ES6 怎么写初始化宽高