react create array

JavaScript
this.state.data.map(function(item, i){
  console.log('test');
  return <li key={i}>Test</li>
})const numbers = [1, 2, 3, 4, 5];
const doubled = numbers.map((number) => number * 2);console.log(doubled);
Source

Also in JavaScript: