score:2

Accepted answer
Object.keys(rankings).map((name, index) => {
    const revenue = rankings[name];         
    return (
        <tr key={index}>
            <td>{index + 1}</td>
            <td>{name}</td>
            <td>{revenue}</td>
        </tr>
    );
})

Related Query

More Query from same tag