In a parent component I am populating a 2D array with a bunch of functional components. However, because I am putting it into an array, each element needs a unique key. What is best practice for doing this with stateless functional components?
var dim = this.props.dim;
var cells = [];
for (var i = 0; i < dim; i++) {
var row = [];
for (var j = 0; j < dim; j++) {
row.push(Cell({dim:10, isAlive:this.state.matrix[i][j].isAlive}))
}
cells.push(row);
};