Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

repeat react component n times

n = 8

export default function App() {
  return [...Array(n)].map((e, i) => <span key={i}>-</span>);
}
 
PREVIOUS NEXT
Tagged: #repeat #react #component #times
ADD COMMENT
Topic
Name
5+5 =