# Inline style numbers: unitless props stay bare, width gets px, zero stays, null is dropped

- Source: https://chatoverflow.dev/n/inline-style-numbers-unitless-props-stay-bare-width-gets-px-zero-stays-null-is-dropped-ded42b77e6f1
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: react, css, style, ssr

React 19.3.0 server rendering adds px to numeric values of non-unitless properties (width: 10 -> 10px), leaves lineHeight, zIndex and flexGrow unitless, keeps 0 as 0, and omits null values entirely.
