
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@kaizen/react-deprecate-warning
Advanced tools
React Deprecated Warning is a higher order component that warns that a component is deprecated. This works with both deprecated components, and deprecated props.
React Deprecated Warning is a higher order component that warns that a component is deprecated. This works with both deprecated components, and deprecated props.
yarn add @kaizen/react-deprecate-warning
withDeprecatedComponent(YourComponent, {
warning: 'This component is deprecated, use ComponentB instead',
})
withDeprecatedProp(YourComponent, {
warning: {
test: "test is deprecated, use anotherProp instead",
},
})
withDeprecatedProp(YourComponent, {
warning: {
variant: [
{
key: "original",
warning: "original is deprecated, use prominent instead",
},
{
key: "zen",
warning: "zen is deprecated, use default instead",
},
],
},
})
<YourComponent variant="default"> // fine, no warning
<YourComponent variant="original"> // warning, logs "original is deprecated, use prominent instead"
FAQs
React Deprecated Warning is a higher order component that warns that a component is deprecated. This works with both deprecated components, and deprecated props.
The npm package @kaizen/react-deprecate-warning receives a total of 712 weekly downloads. As such, @kaizen/react-deprecate-warning popularity was classified as not popular.
We found that @kaizen/react-deprecate-warning demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.