Shouldn’t multiple root elements become a fragment?
Abierto
discussion
has fix
question
- Lenguaje dominante
- JavaScript
- Estrellas
- 9k
- Forks
- 181
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
This works for me:
```js
return html`
<${React.Fragment}>
Quiz
${entriesUi}
<${Summary} entries=${entries} />
`;
```
If I don’t wrap the fragment around the roots, I’m getting this error:
> Warning: Each child in a list should have a unique "key" prop.
(That is, HTM seems to return an Array and not a fragment.)
If my suggestion doesn’t make sense, then it may be helpful to support the `<>...` syntax for fragments.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.