stampit-org / react-stamp

Composables for React.
370 stars 10 forks source link

Provide stateless function support #15

Closed troutowicz closed 8 years ago

troutowicz commented 8 years ago

Support for React's stateless components.

cc @ericelliott

troutowicz commented 8 years ago

I think this PR is overcomplicating things and probably not needed. What's wrong with the following pattern?

reactStamp(React).compose(
  container(PureComp),
  mixin
);

http://codepen.io/troutowicz/pen/BoZqXX?editors=001

ericelliott commented 8 years ago

:+1: