While there is no official way to deprecate a component, there are a few things you can do to indicate a component’s deprecation. Firstly, you can add the @deprecated
jsdoc comment to the @Component
decorator to make the generated readme
reflect the deprecated status. Secondly, you can add a console.warn()
statement in the component’s componentWillLoad()
method to warn the user that the component is deprecated. This message can also include reference to an alternative component, what version it will be removed in, etc.