DEV Community

Muhammad Awais
Muhammad Awais

Posted on

2 1

iterate the data in list using reactjs

let's suppose you have an array of objects contains the data.

javascript es6 onwards have .map() method that actually works like magic for you to iterate, filter and much more to do. so

 data.map((item, index) => {
   return (
     <p key={index}>{item.name}</p>
   );
})

Enter fullscreen mode Exit fullscreen mode

Top comments (0)

SurveyJS custom survey software

Build Your Own Forms without Manual Coding

SurveyJS UI libraries let you build a JSON-based form management system that integrates with any backend, giving you full control over your data with no user limits. Includes support for custom question types, skip logic, an integrated CSS editor, PDF export, real-time analytics, and more.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay