Create new array by mutliplying each. element. this.state.array.forEach((item) =>. newArray.push(item * 2));. return (. <div>. <h1>. React class and forEach ...
確定! 回上一頁