to accept keys, you have to use the imported <Fragment> instead of <> as <> cannot accept keys.
<Fragment>
<>
i.e.
import { Fragment } from 'react'; ... <Fragment key={yourKey}>...</Fragment>