Again map through the inner elements present in the result[item].

   return (
        <React.Fragment>
            { Object.keys(result).map((item, i) => (
                <div key={i} className="report">
                       {result[item].map((media,ind) =>
                         <div key={ind}>{media.name}</div>
                      )}
                </div>
        ))}
        </React.Fragment>
    )
Answer from CodeZombie on Stack Overflow
🌐
Medium
medium.com › @ismailtaufiq19 › display-objects-key-value-pairs-in-reactjs-95d8a26bd74b
Display Object’s Key-Value Pairs in ReactJS - Taufiq Ismail - Medium
August 25, 2023 - const Country = () =>{ const countryLang = { languages: { fra: "French", gsw: "Swiss German", ita: "Italian", roh: "Romansh" } } return( <div> <h2>Languages:</h2> <ul> {Object.keys(countryLang.languages).map((key, index)=>( <li key={index}>{countryLang.languages[key]}</li> ))} </ul> </div> ) } References: [1] https://www.pluralsight.com/guides/how-to-display-key-and-value-pairs-from-json-in-reactjs
Discussions

reactjs - How to properly map through objects in react but only show a specific value - Stack Overflow
A couple of days ago I asked a question with an issue I had from a return off a form. After not realizing out the I was trying to map an object I was able to map the object with this code: {Object. More on stackoverflow.com
🌐 stackoverflow.com
React map key value - javascript
I want to map an object's key name and their values from an API into a list. I need the output to be Country: AE Buy: 1) Provider name: Google Play Movies Country: AU Rent: 1) More on stackoverflow.com
🌐 stackoverflow.com
reactjs - Accessing key name in key-value pairs on props object in React - Stack Overflow
I'm working on a React app and want the component I'm working on to be able to access the key names in the props object the component is receiving. For example, I have this object: var fido = { ... More on stackoverflow.com
🌐 stackoverflow.com
Problem with Object.keys.map in React
Hello ! I have a problem when I try to render something in React with Object.keys(Object).map. I have an object, games_list, which looks like this : games_list: { game1 : { name: "something", id: "something" }, game2 : { etc } } In my page, I’m trying to have cards with informations for each ... More on forum.freecodecamp.org
🌐 forum.freecodecamp.org
0
June 5, 2020
🌐
Pluralsight
pluralsight.com › blog › tech guides & tutorials
Map JavaScript Object Keys Using React | Pluralsight
September 16, 2020 - Apart from the built-in method, it is easy to use an external library like Lodash to help you map over an object's keys. Lodash provides the _.keys method for mapping over an object's keys. There is a slight overhead in terms of performance that you will encounter by using this method, but it is also more succinct.
🌐
React
legacy.reactjs.org › docs › lists-and-keys.html
Lists and Keys – React
If you need the same value in your component, pass it explicitly as a prop with a different name: const content = posts.map((post) => <Post key={post.id} id={post.id} title={post.title} /> );
🌐
Webtips
webtips.dev › display-key-value-pairs-in-react
How to Display Key-Value Pairs in React in a Table - Webtips
May 19, 2023 - Using the key variable inside the map, we can display the key of the object in the first column, and using bracket notation, we can display the corresponding value next to it with user[key]. This will result in the following table:
Find elsewhere
Published: Aug 14, 2018
Author: serdartkm
🌐
freeCodeCamp
forum.freecodecamp.org › t › problem-with-object-keys-map-in-react › 399310
Problem with Object.keys.map in React
June 5, 2020 - Hello ! I have a problem when I try to render something in React with Object.keys(Object).map. I have an object, games_list, which looks like this : games_list: { game1 : { name: "something", id: "something" }, game2 : { etc } } In my page, I’m trying to have cards with informations for each games on it (I’m using React Hooks in functional components) : return ( Your Games ...
🌐
DEV Community
dev.to › mazin1231 › map-method-in-react-js-4i2o
Map() Method In React JS. - DEV Community
November 7, 2022 - The value stored in the map must be mapped to the key. We cannot store a duplicate pair in the map(). It is because of the uniqueness of each stored key. It is mainly used for fast searching and looking up data.
🌐
DhiWise
dhiwise.com › blog › design-converter › how-to-use-react-object-map-for-clean-code
React Object Map: Best Practices For Developers
January 17, 2025 - Each entry is destructured into key and user, allowing me to access the properties directly. The key prop is crucial for React to identify which items have changed, are added, or are removed.
🌐
Stack Overflow
stackoverflow.com › questions › 73704479 › react-how-to-map-through-an-object-and-display-values-from-nested-keys
React - How to map through an object and display values from nested keys -
You can use flat then map to achieve what you want, don't forget to pass an unique key to the div. Object.values(books).flat().map(v => <div key={v}> <span>{v}</span> </div>)
🌐
Bobby Hadz
bobbyhadz.com › blog › react-loop-through-object
How to Loop (or map()) through an Object in React | bobbyhadz
Copied!export default function App() { const employee = { id: 1, name: 'Bobby Hadz', salary: 123, }; return ( <div> {/* 👇️ Iterate the object's KEYS */} {Object.keys(employee).map((key, index) => { return ( <div key={index}> <h2> {key}: {employee[key]} </h2> <hr /> </div> ); })} <br /> <br /> <br /> {/* 👇️ Iterate the object's VALUES */} {Object.values(employee).map((value, index) => { return ( <div key={index}> <h2>{value}</h2> <hr /> </div> ); })} </div> ); }
🌐
Pluralsight
pluralsight.com › blog › tech guides & tutorials
Accessing Data through Props with Known Key Names in React.js | Pluralsight
August 6, 2020 - In the above example, the employee is an array of objects coming from the state object, and by using the map() function the iteration happens, and values are rendered. The Object.entries() is another way to extract the number of key-value pairs from the props object.
🌐
Educative
educative.io › answers › how-to-display-json-key-value-pairs-in-reactjs
How to display JSON key-value pairs in ReactJS
Line 7: Object.entries(data) converts the data JSON object into an array of key-value pairs. Lines 8–11: Array.map() is used to iterate over each key-value pair in the array and return a new array of JSX elements.
🌐
DhiWise
dhiwise.com › post › mastering-react-map-a-comprehensive-guide-to-list-rendering
Understanding React Map for Efficient List Rendering
September 5, 2024 - This callback function can perform operations on the array elements, such as transforming their values. To start working with React, you must import react and react-dom into your application. These imports allow you to create React components and render them to the page. ... Let's create a function NumberList that takes an array of numbers and renders a list of those numbers in your React app. ... 1const numbers = [1, 2, 3, 4, 5]; 2 3function NumberList(props) { 4 const listItems = props.numbers.map((number) => 5 <li key={number.toString()}> 6 {number} 7 </li> 8 ); 9 return ( 10 <ul>{listItems}</ul> 11 ); 12} 13 14export default NumberList; 15