Use the map() function in React to display items in DOM
Jun 15, 2022 · 1 min read · We have an array of objects called cats. We want to display the cats' names as an unordered list in the DOM. import React from "react"; function App() { const cats = [ { name: "Nanny" }, { name: "Minki" }, { name: "Bread" }, { name...
DADaniel and 1 more commented