import React from 'react';

const TableBody = ({ rowIds, Row, style, className }) => (
  <tbody style={style} className={className}>
    { rowIds && rowIds.map(r => <Row key={r} griddleKey={r} />) }
  </tbody>
);

export default TableBody;

import React from 'react';

const TableBody = ({ rowIds, Row, style, className }) => (
  <tbody style={style} className={className}>
    { rowIds && rowIds.map((k, i) => <Row key={k} griddleKey={k} index={i} />) }
  </tbody>
);

export default TableBody;

Add index to Row props
Add index to Row props
