NextJs / Basics / array looping
Array Looping
-
1. Files
using map() import React from 'react'; function App() { const students = [ { 'id': 1, 'name': Jack, 'email': 'jack@gmail.com' }, { 'id': 2, 'name': 'Mary', 'email': ?mary@gmail.com' }, { 'id': 3, 'name': 'John', 'email': 'john@gmail.com' }, ]; return ( Example of React Map Loop
ID Name Email {item.id} {item.name} {item.email}