tnrich / react-variable-height-infinite-scroller

variable row height scroller (no precomputation of row height necessary)
29 stars 4 forks source link

[fixed] default props has to be a function #11

Closed dozoisch closed 9 years ago

dozoisch commented 9 years ago

My bad, I noticed I defined defaultProps as I normally do for es6 classes, but this is a react.createClass so it has to be defined as a function!

https://facebook.github.io/react/docs/reusable-components.html#default-prop-values

tnrich commented 9 years ago

No worries, I'll merge and issue a patch.

tnrich commented 9 years ago

Merged and patched