Use Array#slice()to extract a shallow copy of the values from this.state.data.
const SubsetTable = props => {
let {startIndex, endIndex, data} = props
let subset = data.slice(startIndex, endIndex)
return (
<table>
<tbody>
{subset.map((person, i) => (<TableRow key = {i} data = {person} />)}
</tbody>
</table>
)
}
<SubsetTable startIndex={15} endIndex={25} data={this.state.data} />
, Array#filter(), filter() , . Array#slice() , . filter() , , , Array , .