erikras

erikras/map-props

A higher order React component and allows mapping prop values passed in to other prop values expected by the wrapped component

JavaScript
45
1
MIT License

Map-Props is a React Higher Order Component that allows mapping prop values passed to a wrapped component to different prop values expected by that component. It's designed to increase reusability of stateless React components by transforming props before they reach the component. This library is particularly useful for React developers working with "dumb" components who want to transform incoming props without modifying the component itself.

Total donated
Undistributed
Share with your subscribers: