## 7.1?just?[rest](https://github.com/cujojs/rest)
簡單,rest 請求回來一個 Promise,你還可以用?[when](https://github.com/cujojs/when)?獲得更多的 promise 和 monad 用法。
無需 model 在 componentDidMount 發出 rest 請求,then 直接扔給 setState。最多 setState 前加些 map filter 把數據改改格式。
## 7.2?[relay/graphql](https://facebook.github.io/relay/)
官方 data fetching 解決方案。
比起由 component 去發請求,再轉換數據格式。relay/graphql 的思想是有 component 定義數據形狀,由 relay 去發請求,有 graphql server 跟去根據定義返回相應形狀的數據。
所以,對,會多一層 server layer。
view 層簡單了,graphql 要做的事情卻不少。
## 7.3?[falcor](https://github.com/netflix/falcor)
netflix 的簡單版的 graphql可以參考我的?[todo falcor](https://github.com/jcouyang/react-falcor)?思想大致相似,但是更為簡單一些,沒有什么 QL,schema 之類的
- 1. Why not 2 way binding/為毛不用雙向綁定
- 2. What's Virtual DOM, why should we care / 為毛要用 Vitual Dom
- 3. Why Immutable / 為毛要不可變
- 4. How to do Unit test React project / 如何單元測試
- 5. Modular and Components
- 6. How should I thinking in react way / 如何以 React 的方式解決問題
- 7. What about Data Fetching / 只有 V 的話,數據 M 呢
- 8. What about Router / router 怎么辦
- 9. How to communicate between two components that don't have a parent-child relationship/ 不是父子關系的 component 怎么交互
- 10. When should I use "key" / 什么時候該用 key
- 11. What's these Warnings / 這些黃黃的是神馬
- 12. How to Profile Component Perfomance / 如何提升效率