藉由切分不同小專案,來學習 React Hook 其中包括 :
專案一 (reviews) : 熟悉使用 useState() 和 useEffect() 來做出類似評價瀏覽的畫面
專案二 (quiz) : 使用 Axios 練習串接第三方 API,並練習使用 useContext() 來管理每個 component 會需要用到的 state 或 function
專案三 ( unsplash gallery) : 強化練習以上使用過的 hook
專案四 ( cocktail-gallery ) : 練習使用 router
專案五 ( todo list with pomodoro ) : 練習使用 useReducer() 解決 prop drilling 的問題,以及如何寫出自己的 custom hook
※ 有興趣者,以下聯結有更詳細的介紹 ( https://github.com/jasonLuFa/ReactTrek )