React: Presentation vs Container component

链接:https://medium.com/@dan_abramov/smart-and-dumb-components-7ca2f9a7c7d0#.vwnmnk8vn


































Presentational Components Container Components
Purpose How things look (markup, styles) How things work (data fetching, state updates)
Aware of Redux No
Yes
To read data Read data from props Subscribe to Redux state
To change data Invoke callbacks from props Dispatch Redux actions
Are written By hand Usually generated by React Redux