loop inside react js
<div>
{items.map((item,index) => <ObjectRow key={index} name={item} />)}
</div>
loop inside react js
<div>
{items.map((item,index) => <ObjectRow key={index} name={item} />)}
</div>
react loop
{data.map(x => {
return (
<div>
<p>{content}</p>
</div>
)
})}
loop with react and react native
import React from 'react';
import './App.css';
let items=['Item 1','Item 2','Item 3','Item 4','Item 5'];
let itemList=[];
items.forEach((item,index)=>{
itemList.push( <li key={index}>{item}</li>)
})
function App() {
return (
<>
<h2>This is a simple list of items</h2>
<ul>
{itemList}
</ul>
</>
);
}
export default App;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us