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