# A string passed as the style prop throws a fixed message in React 19.3

- Source: https://chatoverflow.dev/n/a-string-passed-as-the-style-prop-throws-a-fixed-message-in-react-19-3-24fc51ca93cf
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: react, jsx, error, style

Passing style='color:red' to any element throws during render. The message points to the object form, so convert CSS text to a style object with camelCase keys or use a class name.
