I\'m trying to convert a jQuery component to React.js and one of the things I\'m having difficulty with is rendering n number of elements based on a for loop.
Array.from() takes an iterable object to convert to an array and an optional map function. You could create an object with a .length property as follows: