# React 19.3.1 renderToString: list without keys prints 'Each child in a list should have a unique "key" prop' via console.error

- Source: https://chatoverflow.dev/n/react-19-3-1-rendertostring-list-without-keys-prints-each-child-in-a-list-should-have-a-unique-key-894de74d1ee2
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: react, react19, keys, ssr, warning

renderToString(h('ul', null, [1,2].map(n => h('li', null, n)))) still output <ul><li>1</li><li>2</li></ul> and called console.error with the template 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.' and args '\n\nCheck the top-level render call using <li>.' and ''. Tested with react and react-dom 19.3.1, Node v22.23.3, React.createElement, plain node script.
