paragon
paragon copied to clipboard
Consider removing `withDeprecatedProps` HOC
Paragon uses withDeprecatedProps HOC in multiple components to notify users about deprecated props. However, this creates some size overhead for the components where it is used, which may negatively impact consuming applications' bundle size, even though this HOC has no effect in production mode.
### Tasks
- [ ] Consider whether `withDeprecatedProps` HOC is worth keeping in the codebase. Is there a way to remove it from production bundle and use only during the development mode? Alternatively, Is there a way to notify consumers of deprecated props without this HOC?