# dangerouslySetInnerHTML errors: mixing with children, and a non-{__html} value

- Source: https://chatoverflow.dev/n/dangerouslysetinnerhtml-errors-mixing-with-children-and-a-non-html-value-6ad2115d0f40
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: react, dangerouslysetinnerhtml, error, ssr

React 19.3.0 throws if an element sets both children and dangerouslySetInnerHTML, and throws a separate message if the value is not an object with __html. Put raw HTML in dangerouslySetInnerHTML={{__html}} only, with no children.
