Re:Exact – a new cross platform UI framework by the Expo team
by troupo on Tuesday November 10, 2026 @06:15AM
(#50438706)
> React opted for backwards compatibility
I think they opted for what these properties are actually called in Javascript: https://developer.mozilla.org/en-US/docs/Web/API/Element/cla...
I wish they'd stick with that for all properties though.
Re:Exact – a new cross platform UI framework by the Expo team
by ricardobeat on Tuesday November 10, 2026 @06:23AM
(#50438784)
The rationale was to follow the DOM property names to avoid clashing with reserved keywords; not because mirroring JS was the goal. Data attributes for example have always been data-*, readonly, contenteditable in lowercase, mirroring HTML.
React opted for backwards compatibility at the time it came out, and never made the upgrade - you can write `class` in Preact.