-
-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
Description
A new PropType for denoting a prop as deprecated would be useful in slowly migrating components. It would simply call console.warn
in non-production and pass through the original PropType.
Something like the following:
import { deprecated } from 'airbnb-prop-types';
const propTypes = {
title: deprecated(PropTypes.string, 'Please use "children" instead.'),
children: PropTypes.node,
};