3 ms·
Most cases of mixins (especially ones that involve state, as you allude to) can be implemented via composition by creating wrapper components instead. This is h
by spicyj 12y ago
Most cases of mixins (especially ones that involve state, as you allude to) can be implemented via composition by creating wrapper components instead. This is how Relay (http://facebook.github.io/react/blog/2015/02/20/introducing-relay-and-graphql.html http://facebook.github.io/react/blog/2015/02/20/introducing-...) works and makes different components more contained and easier to reason about. Here's one description of how to develop containers (really, higher-order components) from someone who works on Relay:
https://github.com/ericclemmons/react-resolver/issues/8#issuecomment-77765843 https://github.com/ericclemmons/react-resolver/issues/8#issu...
(We know people are excited about React Native and we're working hard to get it out the door – keep your eyes peeled!)