The better compositions leads to:
  • Simple components
  • Easy to test components
  • Flexible components
  • Container components know about data and business logic
  • Presentational components know about how the things look like
Higher-order component is ...
  • ... a wrapper
  • ... a proxy
  • ... a middle-man
  • ... re-rendering
  • ... a DI container
  • ... a swiss knife
In React apps:
  • Data flows only in one direction
  • Components do not modify the data
  • Flux === pattern
  • Alt, Flummox, Fluxxor ...
  • github.com/facebook/flux