Better HN
topnewbestaskshowjobs
Log inSign up

tranver

1 karma · joined Mar 2, 2012 (14y ago) · 1 submissions

Submissions

comment 11y ago · link · parent

Since mixins are not supported in combination with classes[1] there is no way. I just fall back to React.createClass when I need mixins (afaik this is also what Facebook does).

A lot of libraries, including react-router, are considering decorators as an alternative.[2]

[1] http://facebook.github.io/react/blog/2015/01/27/react-v0.13....

[2] https://github.com/rackt/react-router/issues/1173