I am working through a React Redux course and we installed Redux devtools using npm install --save-dev redux-devtools-extension and used it like this:
import { composeWithDevTools } from 'redux-devtools-extension'
const store = createStore(
reducer,
composeWithDevTools()
)
My understanding is the --save-dev flag means this package won't be used in production. The next section of the course introduces Redux Thunk and is installed using npm install redux-thunk. If I am not mistaken, this means this package will be used in production. However, thunk is used in the course like this:
import thunk from 'redux-thunk'
import { composeWithDevTools } from 'redux-devtools-extension'
const store = createStore(
reducer,
composeWithDevTools(
applyMiddleware(thunk)
)
)
thunk is used inside a package function that was installed using --save-dev. How would this work in production since that version would not install redux-devtools-extension?