DEV Community

Discussion on: A type-safe approach to Redux stores in TypeScript

Collapse
 
0xjj profile image
JJ • Edited

I am making actions / and store / under the src / directory. This is because in Redux's architecture, actions are outside the store. Does your opinion say that you prioritized the visibility of the code rather than that concept?

Collapse
 
resir014 profile image
Resi Respati

Yes. When your codebase grows larger, you would inevitably end up scattering code which shares the same context across a great length of the directory tree, which wouldn't be intuitive for newcomers who wanted to take a quick glance.