Categories
How to create a number of paragraphs in a loop and store them in a variable?
let result = for(var i = 0; i < 5; i++){ <p style={}> Привет </p> }
Answer the question
In order to leave comments, you need to log in
const result = [...Array(5)].map(() => <p>hello, world!!</p>);
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question