React Internal Secret Renamed
packages/react-dom/client.js @@ −19,7 +19,7 @@ import type { 19 19 import { 20 20 createRoot as createRootImpl, 21 21 hydrateRoot as hydrateRootImpl, 22 22 − __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED as Internals, 22 22 + __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE as Internals, 23 23 } from './'; 25 25 export function createRoot(
A code diff in React’s DOM client file shows the intimidating internal variable name being replaced with an even longer warning: “__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE.” The joke is that React renamed its secret internals with a more elaborate threat, making the situation absurdly dramatic for developers reviewing a library update. It is typically shared as a humorous reaction to breaking changes, cryptic code, or an era of software development coming to an end. EN: A code diff in React’s DOM client file shows the intimidating internal variable name being replaced with an even longer warning: “__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE.” The joke is that React renamed its secret internals with a more elaborate threat, making the situation absurdly dramatic for developers reviewing a library update. It is typically shared as a humorous reaction to breaking changes, cryptic code, or an era of software development coming to an end.
- @pokupkabitka / 38711 2024-04-12
- Type
- image
- Size
- 800×311 · 37.9 KiB
- Mood
- absurd, sarcastic
- Language
- en
- Added