NA +91-8727899942 thecoderjob@gmail.com

CHAPTER - 30

Array Listing with Map function.

Use only map not for loop to display the data.

Here's is the Code !!

const items = ["Item 1", "Item 2", "Item 3"];

const renderedItems = items.map((item, index) => (
  <div key={index}>{item}</div>
));

Chapter 29

Style in ReactJs and install bootstrap

Previous chapter

Chapter 31

fragment in ReactJs

Next chapter

Get In Touch

NA

thecoderjob@gmail.com

+91-8727899942

Popular Links

© www.thecoderjob.com. All Rights Reserved.               Designed by HTML Codex