Redux
- ใช้แชร์ State แบบ Global ให้ทุก Component เข้าถึงได้- Component ต้องเรียกใช้ Action ในการแก้ไขข้อมูลใน State Global โดยตรง
- ใช้ Logger ในการ Track ได้จะเห็น prev state, action, next state
npm install redux redux-logger redux-thunk react-redux
redux react-redux : ลง redux และใช้ react-reduxredux-logger : ใช้ track การเปลี่ยนแปลงข้อมูล
redux-thunk : เพื่อให้ใช้งาน asynchronous ได้