What you need is to map your array of objects and remember that every item will be an object, so that you will use for instance dot notation to take the values of the object.

In your component

 [
    {
        name: 'Sam',
        email: 'somewhere@gmail.com'
    },

    {
        name: 'Ash',
        email: 'something@gmail.com'
    }
].map((anObjectMapped, index) => {
    return (
        <p key={`${anObjectMapped.name}_{anObjectMapped.email}`}>
            {anObjectMapped.name} - {anObjectMapped.email}
        </p>
    );
})

And remember when you put an array of jsx it has a different meaning and you can not just put object in your render method as you can put an array.

Take a look at my answer at mapping an array to jsx

Answer from FurkanO on Stack Overflow
🌐
W3Schools
w3schools.com › react › react_es6_array_map.asp
React ES6 Array map()
You can also use map() with arrays of objects: const users = [ { id: 1, name: 'John', age: 30 }, { id: 2, name: 'Jane', age: 25 }, { id: 3, name: 'Bob', age: 35 } ]; function UserList() { return ( <ul> {users.map(user => <li key={user.id}> ...
Discussions

How to render an array of objects with Array.map in React
Array.map does not exist. The builtin Array does not have such a method. The only static methods which are defined are Array.from Array.isArrax and Array.of. What you are refering is on the instance of Arrays, and are accessable through the prototype-chain. The correct term would have been Array.prototype.map You've even linked to the mdn page were it is correctly defined, don't just remove things you don't understand - when you are trying to teach others. Don't forget to make proper research. More on reddit.com
🌐 r/reactjs
9
1
July 14, 2021
How to map over 2 Array of object in React and render to Table
From the context here, it sounds like what you'll need to do is that once you retrieve your two datasets, you'll want to combine them in to one that fits your needs, and then use this new result as the data for your table. I'd recommend looking into mapping the user cards to the corresponding user , so something maybe like: const combined = userDataSet.map((user) => { const userCard = userCardDataSet.find((card) => card.userId === user.id); return { ...user, userCard }; }); Made some assumptions of how your data looks, but hopefully this helps. More on reddit.com
🌐 r/reactjs
1
1
March 21, 2022
How to render/map through an array of objects in React
I have created an RSS feed consuming react component. Currently it only displays the title of the first news item. I want to be able to map all of the post titles into the render. https://codesan... More on stackoverflow.com
🌐 stackoverflow.com
How to map an array of objects in react?
I have an array of currencies that I'd like to map out. But I'm not sure how? My app crashes with the code I wrote and returns an empty page with an error: currencyList.map is not a function This i... More on stackoverflow.com
🌐 stackoverflow.com
People also ask

How to render an array of objects in React?
Using these simple and easy steps, you can render an array of objects in React:

Step 1: Create a react application.
Step 2: Change directory.
Step 3: Create
data as an array.
Step 4: Mapping the array into a new array of JSX nodes as arrayDataItems.
Step 5: Return arrayDataItems from the component wrapped in
🌐
guvi.in
guvi.in › blog › programming languages › render array of objects in react: 3 methods with code (2026)
How to Render an Array of Objects in React? [in 3 easy steps]
How do you set an array of objects in state in React JS?

To set an array of objects in the state of a React component, you can use the 'useState' hook. So to do this, first, import 'useState' from 'react'. Then, declare a state variable using useState and initialize it with your array of objects. To update the state, use the setter function provided by the useState hook. And voila, now you can easily manage and modify the array of objects within your component's state.
🌐
guvi.in
guvi.in › blog › programming languages › render array of objects in react: 3 methods with code (2026)
How to Render an Array of Objects in React? [in 3 easy steps]
How do you iterate an array of objects in React JS?

To iterate through an array of objects in ReactJS, you must use the map () method. It creates a new array by applying a provided function to each element of the original array. Within the function, you can access and render each object's properties as and when needed, effectively iterating through and rendering them in your React component.
🌐
guvi.in
guvi.in › blog › programming languages › render array of objects in react: 3 methods with code (2026)
How to Render an Array of Objects in React? [in 3 easy steps]
🌐
Atomizedobjects
atomizedobjects.com › blog › react › how-to-render-an-array-of-objects-with-map-in-react
How to render an array of objects with Array.map in React | Atomized Objects
If you want to learn more about what the prototype property is and what it does, I recommend the following post: Inheritance and the prototype chain. To render an array of objects in react with JSX we need to use Array.map() to transform the object into something react can make use of because ...
🌐
Tim Mousk
timmousk.com › blog › react-map-array-of-objects
How To Map An Array Of Objects In React? – Tim Mouskhelichvili
March 16, 2023 - One of the most typical tasks when working on a React application is rendering a list of objects as components. The easiest way to map an array of objects in React is to use the JavaScript map function.
🌐
Scrimba
scrimba.com › articles › react-list-array-with-map-function
How to use Array.map to render a list of items in React
November 1, 2022 - We then use Array.map to loop over the list of books and insert a Book component in place of each value in the booksarray. You can see this example on CodePen. This is fine in this case as the books array only contains 3 books, but in reality an API might return hundreds of book objects, so how can you limit the number of books that are displayed using the mapmethod?
🌐
freeCodeCamp
freecodecamp.org › news › destructure-object-properties-using-array-map-in-react
How to Destructure Object Properties Using array.map() in React
November 2, 2022 - Say you have a list of items in an array that needs to be rendered as a React component onto a web page. The ideal way to map a series of items in an array looks like this: const shoppingList = ['Oranges', 'Cassava', 'Garri', 'Ewa', 'Dodo', 'Books'] export default function List() { return ( <> {shoppingList.map((item, index) => { return ( <ol> <li key={index}>{item}</li> </ol> ) })} </> ) } The snippet above pretty much fulfills its purpose. But what if you have to map through an array of objects with multiple properties?
Find elsewhere
🌐
GeeksforGeeks
geeksforgeeks.org › reactjs › how-to-render-an-array-of-objects-in-reactjs
How To Render An Array Of Objects In ReactJS? - GeeksforGeeks
July 23, 2025 - The most common and recommended way to render an array of objects in React is by using the Array.map method to iterate through the array.
🌐
Delft Stack
delftstack.com › home › howto › react › react map array of objects
How to Map an Array of Objects in React | Delft Stack
February 2, 2024 - React library is founded on JavaScript so that you can use methods like map() to go over an array of objects.
🌐
GUVI
guvi.in › blog › programming languages › render array of objects in react: 3 methods with code (2026)
How to Render an Array of Objects in React? [in 3 easy steps]
July 18, 2026 - Here, .map() runs once for every object in products. Each object gets destructured into name and price for display, and product.id is passed as the key so React can track each <li> individually.
🌐
Softwareshorts
softwareshorts.com › render-array-objects-array-map-react
How to render an array of objects with Array.map in React | SoftwareShorts
To render an array of data in React, we first need to map/convert the array of data into an array of components, which can be done with Array.prototype.map.
🌐
Reddit
reddit.com › r/reactjs › how to map over 2 array of object in react and render to table
r/reactjs on Reddit: How to map over 2 Array of object in React and render to Table
March 21, 2022 -

how can i map over 2 Array of object in React and render to one Table

const [dataSetOne, setDataSetOne] = useState()
const [dataSettwo, setDataSetTwo] = useState()
``let URL1 = "http://api_url/users"
let URL2 = "http://api_url/users-card"
const promise1 = axios.post(URL1, inputValue , {headers: {'Content-Type': 'text/plain'}});
const promise2 = axios.post(URL2, inputValue , {headers: {'Content-Type': 'text/plain'}});
Promise.all([promise1, promise2]).then(function(values) {
  setDataSetOne(values[0]);
 setDataSetTwo(values[1]);
});

 <TableContainer>
      <Table>
        <TableHead>
          <TableRow>
            <TableCell>Dessert (100g serving)</TableCell>
            <TableCell align="right">Calories</TableCell>
            <TableCell align="right">Fat&nbsp;(g)</TableCell>
          </TableRow>
        </TableHead>
         <TableBody>

             <TableCell>{DataOne}</TableCell>
              <TableCell>{DataOne}</TableCell>
              <TableCell>{DataTwo}</TableCell>

       </TableBody>
      </Table>
    </TableContainer>
🌐
MakeUseOf
makeuseof.com › home › programming › how to map over a nested array in a react component
How to Map Over a Nested Array in a React Component
September 23, 2022 - For a flat array, the map function ... element; }); In React, you must wrap the map function with curly brackets and use an arrow function to return a node element for each iteration....
Top answer
1 of 2
2

You can simply use map to render multiple components from an array:

this.state = { news: [{}, {}] };
...

const news = this.state.news.map((newsItem) =>
  <div key={newsItem.id} className="panel-list">{newsItem.title}</div>
);

Note that I added a key attribute to each div. This is important to give the elements a stable identity as explained here. It needs to be an unique identifier for each news item ("id" is used here as an example).

To render the news variable, you just need to use curly braces. For example, to render it in a div:

<div>{news}</div>

You could also render the list directly, without creating a variable (which is a bit messy, though):

<div>
  {this.state.news.map((newsItem) =>
    <div key={newsItem.id} className="panel-list">{newsItem.title}</div>
  )}
</div>
2 of 2
1

You can do something like the example below

var news = [{
    title: 'first title',
    date: 'first news date'
  },
  {
    title: 'second title',
    date: 'second news date'
  },
  {
    title: 'third title',
    date: 'third news date'
  }
]
const panelList = document.getElementById('panel-list')

news.map(item => {
  panelList.innerHTML += `<div class="panel"><h2 class="panel-title"> ${item.title}</h2><span>${item.date}</span></div>`
})
<div id="panel-list">

</div>

Except the fact that in React you use JSX and you can make that map dirrectly in the render function. The above pure javascript code would translate into :

 <div className="panel-list" >
    {this.state.news.map(item => (
      <div className="panel" key={item.title}>
        <h2 className="panel-title">{item.title}</h2>
        <span>{item.date}</span>
      </div>
    ))}
</div>

Also, like it has been mentioned in another comment, don't forget to add key attribute to each element inside the map ( each panel ) so React can identify the items correctly.

🌐
Codemzy
codemzy.com › blog › react-render-array-of-objects
How to render an array of objects in ReactJS - Codemzy's Blog
August 31, 2022 - I'm going to take a moment to explain how and why Array.map() works in ReactJS - because at first, it kinda just seemed like magic to me. But once you understand it, it just seems so much simpler. You can render an array in ReactJS without doing anything fancy - like this: ... But it won't work. You will get an error [object Error] because the array doesn't contain strings, numbers, or HTML elements that JSX (the language ReactJS uses to render to the DOM) understands.
🌐
GitHub
github.com › Asabeneh › 30-Days-Of-React › blob › master › 06_Day_Map_List_Keys › 06_map_list_keys.md
30-Days-Of-React/06_Day_Map_List_Keys/06_map_list_keys.md at master · Asabeneh/30-Days-Of-React
If the data does not have an id we have to find a way to create a unique identifier for each element when we map it. See the following example: import React from 'react' import ReactDOM from 'react-dom' const Numbers = ({ numbers }) => { // modifying array to array of li JSX const list = numbers.map((num) => <li key={num}>{num}</li>) return list } const App = () => { const numbers = [1, 2, 3, 4, 5] return ( <div className='container'> <div> <h1>Numbers List</h1> <ul> <Numbers numbers={numbers} /> </ul> </div> </div> ) } const rootElement = document.getElementById('root') ReactDOM.render(<App />, rootElement)
Author: Asabeneh
🌐
Stack Overflow
stackoverflow.com › questions › 72799789 › how-to-map-an-array-of-objects-in-react
How to map an array of objects in react?
then it will become an array with all the values object. If you want to map it and pass into a component,
🌐
DEV Community
dev.to › mazin1231 › map-method-in-react-js-4i2o
Map() Method In React JS. - DEV Community
November 7, 2022 - To render an array of objects in react with JSX we need to use Array.map() to transform the object into something react can make use of because you cannot directly render an object into React.
🌐
React
legacy.reactjs.org › docs › lists-and-keys.html
Lists and Keys – React
We can use the same keys when we produce two different arrays: function Blog(props) { const sidebar = ( <ul> {props.posts.map((post) => <li key={post.id}> {post.title} </li> )} </ul> ); const content = props.posts.map((post) => <div key={post.id}> <h3>{post.title}</h3> <p>{post.content}</p> </div> ); return ( <div> {sidebar} <hr /> {content} </div> ); } const posts = [ {id: 1, title: 'Hello World', content: 'Welcome to learning React!'}, {id: 2, title: 'Installation', content: 'You can install React from npm.'} ]; const root = ReactDOM.createRoot(document.getElementById('root')); root.render(<Blog posts={posts} />);