A small utility, v0.1.0 (single release, no active development), that provides a mixin for Redux-ORM Model to validate props using React PropTypes and apply defaultProps. It wraps the Model.create and model.update methods to enforce prop types and merge defaults. Differentiators: lightweight, enforces prop validation in redux-orm models, integrates with React's PropTypes and defaultProps. No further releases expected.
npm install redux-orm-proptypesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the mixin to add PropTypes validation and defaultProps to a redux-orm Model.
Consider implementing similar validation manually or using TypeScript interfaces.
Use the standalone 'prop-types' package and manually integrate validation.
Install redux-orm separately: npm install redux-orm
Use getPropTypesMixin({ validate: true }) to force validation in all environments.Run npm install redux-orm-proptypes --save
Use import propTypesMixin from 'redux-orm-proptypes' (not { propTypesMixin }).Install and import 'prop-types' package instead of relying on React.PropTypes.