I'm trying to add a key to a Fragment like in React:
https://reactjs.org/docs/fragments.html#keyed-fragments
This does not work:
{todos.length && todos.map((todo) => <Fragment key={todo.id}><Todo {...todo} /></Fragment>)}
And components don't have a key input without explicitly declaring it. Is there a way to add the key to a custom component without adding a <div> ?
J