Stop Styling React Components with Javascript
frontyend
3513
Separate styles do not really make sense in React, because you normally end up creating a large tree of components that is to hard to navigate around as it is. Making most of the related code sit beside related component introduces clarity into otherwise cluttered architecture and actually improves reusability because you can drop these incapsulated components into other projects without much hassle. I use react-css-modules rather than inline styles for this purpose, but I think the latter approach is fine too.
U