DEV Community

Discussion on: Learn the Redux Architecture by Creating the Minimal TODO App on top of NEXT.js

Collapse
 
saltyshiomix profile image
Shiono Yoshihide

Yes, you have done right!

Or just replace compose with composeWithDevtools like this commit:

const { composeWithDevTools } = dev ? require('redux-devtools-extension') : require('redux-devtools-extension/logOnlyInProduction');

export default (state = initialState): Store => {
  const middlewares = dev ? [thunkMiddleware, createLogger()] : [];
  return createStore(reducers, state, composeWithDevTools(applyMiddleware(...middlewares)));
};
Thread Thread
 
jattoabdul profile image
Jatto Abdulqahhar

Thanks, Do you have an idea of how to include SCSS to this setup?

Thread Thread
 
saltyshiomix profile image
Shiono Yoshihide

This is a NEXT.js side.
Please see github.com/zeit/next.js/tree/canar...