re-react
A wrapper for react which allows decorating protoTypes to indicate which properties should cause a re-render.
what does it do?
React is an amazing library but if you use it with Redux, every mundane state change causes the entire app to re-render. To combat this most developers implement shouldComponentUpdate functions but these requires lots of boilerplate code. re-react allows you to decorate your propTypes to automatically have a shouldComponentUpdate function injected into your component.
Example
;;; static propTypes = propA: ReactPropTypesstringaffectsRendering propB: ReactPropTypesstring ; { return <div> A: thispropspropA B: thispropspropB </div> ; } ;