loop foreach di reaksi
import React from 'react';
function App() {
const myArray = ['Ranjeet', 'Adil', 'Preet'];
return (
<div className="container" style={{background:'red'}}>
<h1> Example of React Map Loop </h1>
{myArray.map(name => (
<li>
{name}
</li>
))}
</div>
);
}
export default App;
Outrageous Ostrich