Redux best practices
Will Becker
1.6K29

I like your file layout. What I added is a "forms" directory and "components" per module (where applicable) in addition to a general "components" directory of the main root.

If you are using redux-form but also in other scenario's, you are able to abstract the form component from the screen component. Keeping a LoginForm inside a login module makes a lot of sense to me.

Equally, some components are "module specific". For example, I have a Toast component in the general components directory. But the derivative "ConnectionToast" component in the modules/connection/components directory.

Like what you read? Give Marc Schipperheyn a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.