Should be a simple answer, could be that my syntax is not correct since I am new to ReactJS. I would like to assign a unique id as the key.
This throws an error:
rows:{
  uniqueId() : { name:"Kitchen Remodel", value:20100 },
  uniqueId() : { name:"Basement Remodel", value:8300 }
}
This does not? Please explain...
rows:{
  143434 : { name:"Kitchen Remodel", value:20100 },
  984578 : { name:"Basement Remodel", value:8300 }
}
Thanks!
 
     
    