Yes, that warning appears due to changes in React 18.
You now have to pass key as a separate argument.
key
Example
const { key, ...rest } = props; <SomeComponent key={key} {...rest} />