2 ms·
Most of the author's concerns about reusability, maintainability, and separation of concerns can be addressed by thoughtfully structuring your JavaScript applic
by adamsea 9y ago
Most of the author's concerns about reusability, maintainability, and separation of concerns can be addressed by thoughtfully structuring your JavaScript application project. For example, using React/Redux and JSS, the JSS (a CSS-in-JS technology which uses CSS modules among other things) goes in the "dumb" component files, not the "smart" (or "linked") container components which pass Redux state and various functions to the "dumb" component. And then creating a styles.js file (or multiple files if appropriate) is a simple way to create shared JSS styles which can then be imported into various component files as needed.