key vs id

key is a special prop that helps React identify which items have changed, are added, or are removed inside lists.

key should be given to the elements inside an array of components to give the elements a stable identity.

id probably refers to the HTML attribute and it's mainly used by DOM operations, like get-element-by-id...