react redux thunk code example Example 1: redux thunk npm npm install --save redux-thunk Example 2: redux thunk npm install redux-thunk