The latest version of Chrome and Safari support hr elements as children of select elements, and the HTML spec has been updated – but React warns about this as it used to be invalid HTML.

React version: 18.2.0
Steps To Reproduce
- Add a
hr element as a child of select
The current behavior
Warning: validateDOMNesting: <hr> cannot appear as a child of <select>
The expected behavior
No validateDOMNesting warning.