deprecation warning
A message logged to the developer console when code uses a deprecated prop or component, pointing to the replacement.
In more detail
Warnings should appear only in development, guarded by NODE_ENV, and only once per prop, tracked in a Set, so they do not flood the console on every re-render. A good message names the deprecated prop, the replacement and the version in which it will be removed.
Related terms
- deprecation — Marking a feature as outdated and scheduled for removal, while it still works, so users have time to move to its replacement.
- NODE_ENV — An environment variable, usually set to production or development, that libraries, frameworks and build tools read to switch behaviour.
Taught in
- System Governance: Changesets, Semantic Versioning & Deprecation — Design Systems & Component Engineering